mirror of
https://github.com/ENSL/ensl.org.git
synced 2025-01-26 03:01:00 +00:00
Fix staging nginx cfg
This commit is contained in:
parent
fccbef91b1
commit
d182d299f8
1 changed files with 6 additions and 5 deletions
|
@ -1,10 +1,11 @@
|
||||||
|
|
||||||
# Staging nginx conf
|
# Staging nginx conf
|
||||||
# The point of this config file is to have near-identical setup in staging.
|
# The point of this config file is to have near-identical setup in staging.
|
||||||
# Use it in production or copy it over
|
# Use it in production or copy it over
|
||||||
|
|
||||||
upstream ensl_staging {
|
upstream ensl_staging {
|
||||||
server staging:$PUMA_STAGING_PORT;
|
# server staging:$STAGING_PUMA_PORT;
|
||||||
# server unix:/var/tmp/puma.$RAILS_ENV.sock fail_timeout=0;
|
server unix:$STAGING_NGINX_PUBLIC/tmp/puma.sock fail_timeout=0;
|
||||||
}
|
}
|
||||||
|
|
||||||
server {
|
server {
|
||||||
|
@ -56,10 +57,10 @@ server {
|
||||||
|
|
||||||
# FIXME: use env. var
|
# FIXME: use env. var
|
||||||
location /files/ {
|
location /files/ {
|
||||||
# try_files $uri $uri/ @puma;
|
alias /srv/ensl_files/;
|
||||||
# alias root $APP_PATH_PUBLIC/files/;
|
|
||||||
autoindex on;
|
autoindex on;
|
||||||
}
|
}
|
||||||
|
|
||||||
location @puma {
|
location @puma {
|
||||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
proxy_set_header Host $http_host;
|
proxy_set_header Host $http_host;
|
||||||
|
|
Loading…
Reference in a new issue