mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-27 13:47:58 +01:00
40 lines
872 B
Text
40 lines
872 B
Text
|
upstream philomena {
|
||
|
server localhost:4000 fail_timeout=0;
|
||
|
}
|
||
|
|
||
|
server {
|
||
|
listen 80 default;
|
||
|
listen [::]:80;
|
||
|
|
||
|
root APP_DIR/priv/static;
|
||
|
|
||
|
location / {
|
||
|
try_files $uri @proxy;
|
||
|
}
|
||
|
|
||
|
location @proxy {
|
||
|
proxy_pass http://philomena;
|
||
|
proxy_redirect off;
|
||
|
|
||
|
proxy_set_header Host $host:$server_port;
|
||
|
proxy_set_header X-Real-IP $remote_addr;
|
||
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||
|
|
||
|
client_max_body_size 30m;
|
||
|
client_body_buffer_size 128k;
|
||
|
|
||
|
proxy_connect_timeout 90;
|
||
|
proxy_send_timeout 90;
|
||
|
proxy_read_timeout 90;
|
||
|
|
||
|
proxy_buffer_size 4k;
|
||
|
proxy_buffers 4 32k;
|
||
|
proxy_busy_buffers_size 64k;
|
||
|
proxy_temp_file_write_size 64k;
|
||
|
|
||
|
# Configuration for Phoenix WS
|
||
|
proxy_set_header Upgrade $http_upgrade;
|
||
|
proxy_set_header Connection "upgrade";
|
||
|
}
|
||
|
}
|