2019-09-26 05:16:00 +02:00
|
|
|
server {
|
2025-01-02 20:46:53 +01:00
|
|
|
gzip_static always;
|
|
|
|
|
gzip_proxied expired no-cache no-store private auth;
|
|
|
|
|
gunzip on;
|
2023-07-05 15:03:43 +02:00
|
|
|
listen ${PORT} default_server;
|
|
|
|
|
listen [::]:${PORT} default_server;
|
2019-09-26 05:16:00 +02:00
|
|
|
location / {
|
|
|
|
|
root /usr/share/nginx/html;
|
|
|
|
|
index index.html index.htm;
|
2025-03-27 21:47:16 +01:00
|
|
|
try_files $uri $uri/ ${PUBLIC_URL}index.html;
|
2022-12-05 15:53:59 +01:00
|
|
|
add_header Cross-Origin-Resource-Policy same-origin;
|
|
|
|
|
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 $http_x_forwarded_proto;
|
2019-09-26 05:16:00 +02:00
|
|
|
}
|
|
|
|
|
error_page 500 502 503 504 /50x.html;
|
|
|
|
|
location = /50x.html {
|
|
|
|
|
root /usr/share/nginx/html;
|
|
|
|
|
}
|
|
|
|
|
}
|