63 lines
1.4 KiB
Plaintext
63 lines
1.4 KiB
Plaintext
server {
|
|
listen 8080;
|
|
proxy_hide_header WWW-Authenticate;
|
|
root /usr/share/nginx/html;
|
|
|
|
# SSL stuff for cloudflare proxy-ing - ignores SSL certificate and uses SNI
|
|
proxy_ssl_verify off;
|
|
proxy_read_timeout 1m;
|
|
proxy_ssl_server_name on;
|
|
|
|
location / {
|
|
index index.html;
|
|
expires -1;
|
|
proxy_hide_header WWW-Authenticate;
|
|
try_files $uri$args $uri$args/ $uri $uri/ /index.html =404;
|
|
}
|
|
location /project {
|
|
proxy_pass $API_URL;
|
|
}
|
|
location /version {
|
|
proxy_pass $API_URL;
|
|
}
|
|
location /color {
|
|
proxy_pass $API_URL;
|
|
}
|
|
location /user {
|
|
proxy_pass $API_URL;
|
|
}
|
|
location /dictionary {
|
|
proxy_pass $API_URL;
|
|
}
|
|
location /manualRedaction {
|
|
proxy_pass $API_URL;
|
|
}
|
|
location /reanalyze {
|
|
proxy_pass $API_URL;
|
|
}
|
|
location /upload {
|
|
proxy_pass $API_URL;
|
|
}
|
|
location /download {
|
|
proxy_pass $API_URL;
|
|
}
|
|
location /delete {
|
|
proxy_pass $API_URL;
|
|
}
|
|
location /status {
|
|
proxy_pass $API_URL;
|
|
}
|
|
location /redactionLog {
|
|
proxy_pass $API_URL;
|
|
}
|
|
client_max_body_size 0;
|
|
gzip_min_length 1000;
|
|
gzip on;
|
|
gzip_http_version 1.0;
|
|
gzip_vary on;
|
|
gzip_proxied any;
|
|
gzip_comp_level 6;
|
|
gzip_buffers 16 8k;
|
|
gzip_types application/javascript text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;
|
|
}
|