diff options
| author | nemsia <nemsia@nemsia.org> | 2018-06-21 10:50:06 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-06-21 10:50:06 +0200 |
| commit | 6a4ca2a0e670afec810204cb90009097914f748c (patch) | |
| tree | 693fcef1b30fd5e7d65092fe7bcd48fe2303bbc9 /conf | |
| parent | cd1f81fb5d25783329e549ee966a0a545001c63c (diff) | |
| parent | 531aaa6a47c87e41f18eff02a4dd10d2481f9a08 (diff) | |
| download | mastodon_ynh-6a4ca2a0e670afec810204cb90009097914f748c.tar.gz mastodon_ynh-6a4ca2a0e670afec810204cb90009097914f748c.tar.bz2 mastodon_ynh-6a4ca2a0e670afec810204cb90009097914f748c.zip | |
Merge pull request #100 from anmol26s/master
Some changes to improve 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; |
