-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaskme.conf
35 lines (29 loc) · 931 Bytes
/
askme.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
upstream backend {
server 127.0.0.1:8081;
}
proxy_cache_path /var/spool/nginx/ levels=1:2 keys_zone=my_cache:10m max_size=100m inactive=5m;
proxy_cache_valid 200 1m;
server {
listen 80;
server_name 127.0.0.1 www.askpetros.io;
gzip on;
gzip_comp_level 9;
gzip_disable "msie6";
gzip_types text/plain text/css text/javascript application/javascript image/jpeg image/jpg image/png image/vnd.microsoft.icon;
location ^~ /uploads/ {
root /usr/local/etc/nginx/sites-enabled/askme;
}
#location /static/ {
# root /usr/local/etc/nginx/sites-enabled/askme/;
#}
location ~* \.\w\w\w?\w?$ {
root /usr/local/etc/nginx/sites-enabled/askme/;
}
location / {
proxy_pass http://127.0.0.1:8081;
index index.html;
# proxy_set_header Host $server_name;
# proxy_set_header X-Real-IP $remote_addr;
# proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
}