1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/mastodon_ynh.git synced 2024-09-03 19:46:02 +02:00

[fix] bug nginx.conf (see mastodon issue #1045)

This commit is contained in:
magikcypress 2017-04-09 17:21:51 +02:00
parent c107ef6b2e
commit d04d692b8a
2 changed files with 4 additions and 1 deletions

View file

@ -7,6 +7,9 @@
try_files $uri @proxy; try_files $uri @proxy;
# Include SSOWAT user panel.
include conf.d/yunohost_panel.conf.inc;
} }
location @proxy { location @proxy {

View file

@ -109,7 +109,7 @@ MCOMMANDS
# Adjust Mastodon config # Adjust Mastodon config
pushd $final_path/live/ pushd $final_path/live/
sudo cp -a .env.production.sample .env.production sudo cp -a .env.production.sample .env.production
sudo sed -i "s@REDIS_HOST=localhost@REDIS_HOST=localhost@g" "${final_path}/live/.env.production" sudo sed -i "s@REDIS_HOST=localhost@REDIS_HOST=127.0.0.1@g" "${final_path}/live/.env.production"
sudo sed -i "s@DB_HOST=db@DB_HOST=/var/run/postgresql@g" "${final_path}/live/.env.production" sudo sed -i "s@DB_HOST=db@DB_HOST=/var/run/postgresql@g" "${final_path}/live/.env.production"
sudo sed -i "s@DB_USER=mastodon@DB_USER=${dbuser}@g" "${final_path}/live/.env.production" sudo sed -i "s@DB_USER=mastodon@DB_USER=${dbuser}@g" "${final_path}/live/.env.production"
sudo sed -i "s@DB_NAME=mastodon@DB_NAME=${dbuser}@g" "${final_path}/live/.env.production" sudo sed -i "s@DB_NAME=mastodon@DB_NAME=${dbuser}@g" "${final_path}/live/.env.production"