apxtrib/asupsetup/apixtribe.crabdance.com.mustache

38 lines
1.2 KiB
Plaintext
Raw Normal View History

2023-01-22 09:53:09 +00:00
server {
2023-03-27 05:52:21 +00:00
server_name {{config.apxtribDNS}};
2023-01-22 09:53:09 +00:00
add_header X-Request-ID $request_id; # Return to client
add_header Access-Control-Allow-Origin *;
add_header Access-Control-Max-Age 3600;
add_header Access-Control-Expose-Headers Content-Length;
add_header Access-Control-Allow-Headers Range;
2023-03-27 05:52:21 +00:00
access_log /media/phil/usbfarm/apxtrib/tmp/nginx/apxtrib.crabdance.access.log main;
2023-01-22 09:53:09 +00:00
#location = /app {
# return 302 /app/;
#}
location /app/ {
rewrite /app/(.*$) /$1 break;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
client_max_body_size 10m;
client_body_buffer_size 128k;
proxy_connect_timeout 90;
proxy_send_timeout 90;
proxy_read_timeout 90;
proxy_buffers 32 4k;
proxy_set_header X-NginX-Proxy true;
proxy_pass http://localhost:3017;
proxy_redirect off;
}
location / {
2023-03-27 05:52:21 +00:00
root /media/phil/usbfarm/apxtrib/nationchains/;
index apxtrib.html;
2023-01-22 09:53:09 +00:00
}
2023-03-27 05:52:21 +00:00
error_page 404 /media/phil/usbfarm/apxtrib/nationchains/error/404.html;
error_page 500 502 503 504 /media/phil/usbfarm/apxtrib/nationchains/error/50x.html;
2023-01-22 09:53:09 +00:00
}