Skip to content

Commit 003aee0

Browse files
committed
add server configuration docs link to readme
1 parent 2b441a3 commit 003aee0

File tree

1 file changed

+1
-85
lines changed

1 file changed

+1
-85
lines changed

README.md

Lines changed: 1 addition & 85 deletions
Original file line numberDiff line numberDiff line change
@@ -77,91 +77,7 @@ You can log in to Mixpost at `/mixpost` using the user account you created.
7777

7878
*Please do not skip the server configuration step as it is important for Mixpost to work well.*
7979

80-
### Installing FFmpeg
81-
82-
Mixpost has the ability to generate images from video while uploading a video file. This would not be possible without
83-
FFmpeg installed on your server.
84-
85-
You need to follow FFmpeg installation instructions on their [official website](https://ffmpeg.org/download.html).
86-
87-
### Installing Redis
88-
So that the posts can be scheduled, Mixpost puts them in the queue.
89-
90-
To be able to do this, you need to install [Redis](https://redis.io/).
91-
Then, you will need to modify the values of the REDIS_* entries in the `.env` file to make sure they are aligned with your redis instance.
92-
93-
### Installing Supervisor
94-
You need to configure a process monitor. To install Supervisor on Ubuntu, you may use the following command:
95-
96-
```bash
97-
sudo apt-get install supervisor
98-
```
99-
100-
### Configuring Supervisor
101-
102-
Supervisor configuration files are typically stored in the `/etc/supervisor/conf.d`.
103-
104-
Create the file `mixpost-horizon.conf` inside of `conf.d` folder and put this configuration content:
105-
106-
```bash
107-
[program:mixpost_horizon]
108-
process_name=%(program_name)s
109-
command=php /path-to-your-project/artisan horizon
110-
autostart=true
111-
autorestart=true
112-
user=your_user_name
113-
redirect_stderr=true
114-
stdout_logfile=/path-to-your-project/storage/logs/horizon.log
115-
stopwaitsecs=3600
116-
```
117-
Once the configuration file has been created, you may update the Supervisor configuration and start the processes using the following commands:
118-
119-
```bash
120-
sudo supervisorctl reread
121-
122-
sudo supervisorctl update
123-
124-
sudo supervisorctl start mixpost_horizon:*
125-
```
126-
127-
### Cron
128-
Add a cron that running the scheduler:
129-
130-
`* * * * * cd /path-to-your-project && php artisan schedule:run >> /dev/null 2>&1`
131-
132-
### Other things to consider
133-
Some files that are uploaded, video for example, can be up to 200 mb, by default most web servers have configured a much smaller limit. You will need to check this.
134-
135-
#### In `php.ini`:
136-
137-
```conf
138-
post_max_size = 200M
139-
upload_max_filesize = 200M
140-
```
141-
142-
Then, restart your php process. For php fpm you can restart with:
143-
144-
```bash
145-
sudo systemctl restart php8.1-fpm.service
146-
sudo systemctl reload php8.1-fpm.service
147-
```
148-
149-
#### In `nginx.conf`:
150-
151-
```conf
152-
http {
153-
client_max_body_size 200M;
154-
}
155-
```
156-
Then, `sudo systemctl restart nginx`
157-
158-
#### For apache, `/etc/httpd/conf/httpd.conf.`
159-
160-
```conf
161-
LimitRequestBody 209715200
162-
```
163-
164-
Then: `sudo systemctl restart httpd`
80+
[Server configuration Guide](https://docs.inovector.com/books/server-configuration-mixpost)
16581

16682
***
16783

0 commit comments

Comments
 (0)