reworked nginx to old style
This commit is contained in:
parent
cb87c7873c
commit
58d3553cd8
@ -151,7 +151,6 @@ html, body {
|
||||
display: block;
|
||||
}
|
||||
|
||||
|
||||
.details-button {
|
||||
position: fixed !important;
|
||||
bottom: 20px;
|
||||
|
||||
@ -1,43 +1,37 @@
|
||||
http {
|
||||
server {
|
||||
listen 8080;
|
||||
server {
|
||||
listen 8080;
|
||||
proxy_hide_header WWW-Authenticate;
|
||||
root /usr/share/nginx/html;
|
||||
location / {
|
||||
index index.html;
|
||||
expires -1;
|
||||
proxy_hide_header WWW-Authenticate;
|
||||
root /usr/share/nginx/html;
|
||||
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 /reanalyse {
|
||||
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;
|
||||
}
|
||||
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;
|
||||
try_files $uri$args $uri$args/ $uri $uri/ /index.html =404;
|
||||
}
|
||||
}
|
||||
|
||||
events {
|
||||
# configuration of connection processing
|
||||
location /project {
|
||||
proxy_pass $API_URL;
|
||||
}
|
||||
location /reanalyse {
|
||||
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;
|
||||
}
|
||||
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;
|
||||
}
|
||||
|
||||
@ -12,7 +12,7 @@ echo '{
|
||||
"API_URL":"'"$API_URL"'"
|
||||
}' > /usr/share/nginx/html/assets/config/config.json
|
||||
|
||||
envsubst '$API_URL' < /nginx.conf.template > /etc/nginx/nginx.conf
|
||||
envsubst '$API_URL' < /nginx.conf.template > /etc/nginx/conf.d/default.conf
|
||||
|
||||
cho 'Env variables: '
|
||||
cat /usr/share/nginx/html/assets/config/config.json
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user