Fix staging nginx cfg

This commit is contained in:
Ari Timonen 2023-03-04 18:52:42 +02:00
parent fccbef91b1
commit d182d299f8

View file

@ -1,10 +1,11 @@
# Staging nginx conf
# The point of this config file is to have near-identical setup in staging.
# Use it in production or copy it over
upstream ensl_staging {
server staging:$PUMA_STAGING_PORT;
# server unix:/var/tmp/puma.$RAILS_ENV.sock fail_timeout=0;
# server staging:$STAGING_PUMA_PORT;
server unix:$STAGING_NGINX_PUBLIC/tmp/puma.sock fail_timeout=0;
}
server {
@ -56,10 +57,10 @@ server {
# FIXME: use env. var
location /files/ {
# try_files $uri $uri/ @puma;
# alias root $APP_PATH_PUBLIC/files/;
alias /srv/ensl_files/;
autoindex on;
}
location @puma {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;