-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathnginx.conf
42 lines (34 loc) · 947 Bytes
/
nginx.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
events {
}
http {
include /etc/nginx/mime.types;
sendfile on;
server {
listen 80;
listen [::]:80;
# Example: add the reverse-proxy for the api (backend) calls
# location "/backend/" {
# proxy_pass YOUR_URL; # replace by your url
# }
location /template-library {
proxy_pass https://raw.githubusercontent.com/ditrit/leto-modelizer-templates-library/leto-modelizer/e2e_test;
}
location "/cors-proxy/" {
resolver 8.8.8.8;
proxy_hide_header WWW-Authenticate;
rewrite ^/cors-proxy/(.*)$ $1 break;
proxy_pass "https://$uri$is_args$args";
}
location ~ \*.css {
add_header Content-Type text/css;
}
location ~ \*.js {
add_header Content-Type application/x-javascript;
}
location / {
root /usr/share/nginx/html;
# Due to HISTORY mode, we need to add the following line
try_files $uri $uri/ /index.html;
}
}
}