diff options
| author | anmol26s <github@datamol.org> | 2018-06-21 08:18:02 +0530 |
|---|---|---|
| committer | anmol26s <github@datamol.org> | 2018-06-21 08:18:02 +0530 |
| commit | 9c37e95309833ae19048ee1e53b8c4070f3e7f8d (patch) | |
| tree | e6bf8a8a93ff657baba9203bf52206469c2b076f /conf | |
| parent | cd1f81fb5d25783329e549ee966a0a545001c63c (diff) | |
| download | mastodon_ynh-9c37e95309833ae19048ee1e53b8c4070f3e7f8d.tar.gz mastodon_ynh-9c37e95309833ae19048ee1e53b8c4070f3e7f8d.tar.bz2 mastodon_ynh-9c37e95309833ae19048ee1e53b8c4070f3e7f8d.zip | |
Improved the app
Diffstat (limited to 'conf')
| -rw-r--r-- | conf/mastodon-streaming.service | 2 | ||||
| -rw-r--r-- | conf/mastodon-web.service | 2 | ||||
| -rw-r--r-- | conf/nginx.conf | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/conf/mastodon-streaming.service b/conf/mastodon-streaming.service index 443cac0..689d482 100644 --- a/conf/mastodon-streaming.service +++ b/conf/mastodon-streaming.service @@ -7,7 +7,7 @@ User=__APP__ WorkingDirectory=__FINALPATH__/live Environment="NODE_ENV=production" - Environment="PORT=4000" + Environment="PORT=__PORT_STREAM__" ExecStart=/usr/bin/npm run start TimeoutSec=15 Restart=always diff --git a/conf/mastodon-web.service b/conf/mastodon-web.service index 06069f1..46b304e 100644 --- a/conf/mastodon-web.service +++ b/conf/mastodon-web.service @@ -7,7 +7,7 @@ User=__APP__ WorkingDirectory=__FINALPATH__/live Environment="RAILS_ENV=production" - Environment="PORT=3000" + Environment="PORT=__PORT_WEB__" ExecStart=__FINALPATH__/live/bin/bundle exec puma -C config/puma.rb TimeoutSec=15 Restart=always diff --git a/conf/nginx.conf b/conf/nginx.conf index 585109e..a183a31 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -28,7 +28,7 @@ location @proxy { proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto https; proxy_pass_header Server; - proxy_pass http://127.0.0.1:3000; + proxy_pass http://127.0.0.1:__PORT_WEB__; proxy_buffering off; proxy_redirect off; proxy_http_version 1.1; @@ -42,7 +42,7 @@ location /api/v1/streaming { proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto https; - proxy_pass http://127.0.0.1:4000; + proxy_pass http://127.0.0.1:__PORT_STREAM__; proxy_buffering off; proxy_redirect off; proxy_http_version 1.1; |
