forked from Alt-Org/Altzone-Server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnginx.conf
38 lines (29 loc) · 910 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
events { worker_connections 1024; }
http {
include mime.types;
server {
listen 80;
location / {
#Reverse proxy does not work here, because API is not in docker
proxy_pass http://localhost:8080;
}
gzip on;
gzip_comp_level 3;
gzip_types text/css text/javascript image/png image/webp image/x-jng image/gif image/jpeg;
location ^~ /public {
root /usr/local/nginx;
add_header Cach-Control public;
add_header Pragma public;
add_header Vary Accept-Encoding;
expires 1M;
try_files $uri $uri/ =404;
}
# location ^~ /public/metaData {
# try_files $uri $uri/ =404;
# }
location = /panel {
proxy_set_header Host $host;
proxy_pass http://altzone_panel_dev:8081/panel/;
}
}
}