diff options
| author | magikcypress <cyp@rouquin.me> | 2017-04-10 04:55:10 +0200 |
|---|---|---|
| committer | magikcypress <cyp@rouquin.me> | 2017-04-10 04:55:10 +0200 |
| commit | 4dfe2759421883575d4a63d2879d58b93bc56f6a (patch) | |
| tree | 89c16c4295f356fe0c8b7b88f2b8f4f87b62d4db /conf | |
| parent | d04d692b8adee05afaa664067d97727a54f3768c (diff) | |
| download | mastodon_ynh-4dfe2759421883575d4a63d2879d58b93bc56f6a.tar.gz mastodon_ynh-4dfe2759421883575d4a63d2879d58b93bc56f6a.tar.bz2 mastodon_ynh-4dfe2759421883575d4a63d2879d58b93bc56f6a.zip | |
[fix] install + add file remove/restore/upgrade
Diffstat (limited to 'conf')
| -rw-r--r-- | conf/mastodon-sidekiq.service | 4 | ||||
| -rw-r--r-- | conf/nginx.conf | 71 |
2 files changed, 37 insertions, 38 deletions
diff --git a/conf/mastodon-sidekiq.service b/conf/mastodon-sidekiq.service index c0a24c8..34074ed 100644 --- a/conf/mastodon-sidekiq.service +++ b/conf/mastodon-sidekiq.service @@ -7,8 +7,8 @@ User=mastodon WorkingDirectory=/opt/mastodon/live Environment="RAILS_ENV=production" - Environment="DB_POOL=5" - ExecStart=/opt/mastodon/.rbenv/shims/bundle exec sidekiq -c 5 -q default -q mailers -q pull -q push + Environment="DB_POOL=20" + ExecStart=/opt/mastodon/.rbenv/shims/bundle exec sidekiq -c 20 -q default -q mailers -q pull -q push TimeoutSec=15 Restart=always StandardError=syslog diff --git a/conf/nginx.conf b/conf/nginx.conf index d05cdcb..780c462 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -1,42 +1,41 @@ - location __PATH__ { - alias __FINALPATH__/live/public; +location __PATH__ { + # alias __FINALPATH__/live/public; - if ($scheme = http) { - rewrite ^ https://$server_name$request_uri? permanent; - } + if ($scheme = http) { + rewrite ^ https://$server_name$request_uri? permanent; + } + try_files $uri @proxy; - try_files $uri @proxy; + #--PRIVATE--# Include SSOWAT user panel. + #--PRIVATE--include conf.d/yunohost_panel.conf.inc; +} - # Include SSOWAT user panel. - include conf.d/yunohost_panel.conf.inc; - } +location @proxy { + proxy_set_header Host $host; + 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_header Server; + proxy_pass http://127.0.0.1:3000; + proxy_buffering off; + proxy_redirect off; + proxy_http_version 1.1; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection "upgrade"; + tcp_nodelay on; +} - location @proxy { - proxy_set_header Host $host; - 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_header Server; - proxy_pass http://127.0.0.1:3000; - proxy_buffering off; - proxy_redirect off; - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "upgrade"; - tcp_nodelay on; - } - - location __PATH__/api/v1/streaming { - proxy_set_header Host $host; - 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_buffering off; - proxy_redirect off; - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "upgrade"; - tcp_nodelay on; +location /api/v1/streaming { + proxy_set_header Host $host; + 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_buffering off; + proxy_redirect off; + proxy_http_version 1.1; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection "upgrade"; + tcp_nodelay on; }
\ No newline at end of file |
