mirror of
https://github.com/YunoHost-Apps/glitchsoc_ynh.git
synced 2024-09-03 19:15:59 +02:00
commit
838f971cf4
2 changed files with 5 additions and 1 deletions
|
@ -1,3 +1,6 @@
|
||||||
|
# upload max size
|
||||||
|
client_max_body_size 100M;
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
|
|
||||||
if ($scheme = http) {
|
if ($scheme = http) {
|
||||||
|
|
|
@ -32,6 +32,7 @@ db_name=$app
|
||||||
# Modify Nginx configuration file and copy it to Nginx conf directory
|
# Modify Nginx configuration file and copy it to Nginx conf directory
|
||||||
sudo sed -i "s@__PATH__@$app@g" ../conf/nginx.conf*
|
sudo sed -i "s@__PATH__@$app@g" ../conf/nginx.conf*
|
||||||
sudo sed -i "s@__FINALPATH__@$final_path/@g" ../conf/nginx.conf*
|
sudo sed -i "s@__FINALPATH__@$final_path/@g" ../conf/nginx.conf*
|
||||||
|
sudo cp ../conf/nginx.conf /etc/nginx/conf.d/$domain.d/$app.conf
|
||||||
|
|
||||||
# Stop Mastodon Services
|
# Stop Mastodon Services
|
||||||
sudo systemctl stop mastodon-*.service
|
sudo systemctl stop mastodon-*.service
|
||||||
|
|
Loading…
Reference in a new issue