mirror of
https://github.com/JHUAPL/PINE.git
synced 2026-01-09 20:47:59 -05:00
35 lines
758 B
Plaintext
35 lines
758 B
Plaintext
include ${LOG_FORMAT_SNIPPET};
|
|
|
|
server {
|
|
listen 443 ssl;
|
|
include snippets/self-signed.conf;
|
|
include snippets/ssl-params.conf;
|
|
|
|
server_name ${SERVER_NAME};
|
|
|
|
client_max_body_size 0;
|
|
|
|
location / {
|
|
root {{ROOT_DIR}}/dist/pine;
|
|
index index.html;
|
|
expires -1;
|
|
add_header Pragma "no-cache";
|
|
add_header Cache-Control "no-store, no-cache, must-revalidate, post-check=0, pre-check=0";
|
|
try_files $uri$args $uri$args/ $uri $uri/ /index.html =404;
|
|
}
|
|
|
|
location /api {
|
|
include proxy_params;
|
|
rewrite ^/api(.*) $1 break;
|
|
proxy_pass ${BACKEND_SERVER};
|
|
}
|
|
}
|
|
|
|
server {
|
|
listen 80;
|
|
|
|
server_name ${SERVER_NAME};
|
|
|
|
return 302 https://$server_name$request_uri;
|
|
}
|