-
Notifications
You must be signed in to change notification settings - Fork 1
/
nginx.build.conf
33 lines (30 loc) · 990 Bytes
/
nginx.build.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
# a noter que pour la version prod il faut rajouter "user guillaumelancreno staff;" en haut du fichier de conf
server {
listen 80;
server_name previsecours.fr.prod;
location / {
root /Users/<USERNAME>/Documents/<PATH_TO_PROJECT>/vueJS_Previsecours/dist;
index index.html;
}
# backend RESTful API
location ~ /api/.* {
rewrite /api/(.*) /$1 break;
proxy_pass http://127.0.0.1:9200;
proxy_redirect off;
proxy_read_timeout 3600;
proxy_send_timeout 600;
# Allow large uploads
client_max_body_size 0;
# Allow protocol upgrade to websocket
proxy_http_version 1.1;
proxy_next_upstream off;
proxy_set_header Host $http_host;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
# redirect server error pages to the static page /50x.html
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
}