This repository has been archived by the owner on Mar 31, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathoverrustle.nginx.conf
74 lines (59 loc) · 1.88 KB
/
overrustle.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
proxy_cache_path /var/cache/nginx levels=1:2 keys_zone=STATIC:10m inactive=24h max_size=32m;
upstream node {
server localhost:4200;
}
server {
listen *:80;
listen [::]:80;
server_name *.overrustle.com;
error_log /var/log/nginx/overrustle.err;
access_log off;
add_header X-XSS-Protection "1; mode=block";
proxy_hide_header X-Powered-By;
add_header X-Powered-By "YEE";
location / {
set_real_ip_from 199.27.128.0/21;
set_real_ip_from 173.245.48.0/20;
set_real_ip_from 103.21.244.0/22;
set_real_ip_from 103.22.200.0/22;
set_real_ip_from 103.31.4.0/22;
set_real_ip_from 141.101.64.0/18;
set_real_ip_from 108.162.192.0/18;
set_real_ip_from 190.93.240.0/20;
set_real_ip_from 188.114.96.0/20;
set_real_ip_from 197.234.240.0/22;
set_real_ip_from 198.41.128.0/17;
set_real_ip_from 162.158.0.0/15;
set_real_ip_from 104.16.0.0/12;
set_real_ip_from 172.64.0.0/13;
set_real_ip_from 2400:cb00::/32;
set_real_ip_from 2606:4700::/32;
set_real_ip_from 2803:f800::/32;
set_real_ip_from 2405:b500::/32;
set_real_ip_from 2405:8100::/32;
real_ip_header X-Forwarded-For;
proxy_set_header Host $http_host;
proxy_pass http://node/;
proxy_redirect off;
#caching was the cause of session issues, disabled until I fix it LeRuse
#proxy_cache STATIC;
#proxy_cache_valid 200 1m;
#proxy_cache_bypass $http_upgrade;
#proxy_cache_use_stale error timeout invalid_header updating http_500 http_502 http_503 http_504;
}
location ^~ /img/ {
alias /srv/www/overrustle.com/img/;
}
location ^~ /css/ {
alias /srv/www/overrustle.com/css/;
}
location ^~ /js/ {
alias /srv/www/overrustle.com/js/;
}
location ^~ /html/ {
alias /srv/www/overrustle.com/html/;
}
location ^~ /fonts/ {
alias /srv/www/overrustle.com/fonts/;
}
}