Files
PINE/frontend/annotation/nginx/nlp-web-app.https.mustache
2020-06-19 13:19:50 -04:00

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;
}