forked from hayksaakian/OverRustle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoverrustle.conf
110 lines (87 loc) · 3.51 KB
/
overrustle.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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
server {
listen *:80;
listen [::]:80;
server_name beta.overrustle.com;
access_log /var/log/nginx/overrustle.log;
# access_log off;
error_log /dev/null;
gzip on;
gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;
gzip_min_length 1100;
gzip_buffers 4 32k;
gzip_vary on;
error_page 404 /;
port_in_redirect off;
root /dev/null;
# root /srv/www/overrustle.com/beta;
location / {
index index.php index.html;
autoindex on;
try_files $uri $uri/ @extensionless-php;
add_header X-XSS-Protection "1; mode=block";
}
location ~* \.(gif|jpe?g|png)$ {
expires 24h;
add_header Pragma public;
add_header Cache-Control "public, must-revalidate, proxy-revalidate";
add_header X-XSS-Protection "1; mode=block";
}
location @extensionless-php {
rewrite ^(.*)$ $1.php last;
rewrite ^/channel/(.*)$ channel.php?user=$1 last;
rewrite ^/twitch/(.*)$ destinychat.php?s=twitch&stream=$1 last;
rewrite ^/hitbox/(.*)$ destinychat.php?s=hitbox&stream=$1 last;
rewrite ^/ustream/(.*)$ destinychat.php?s=ustream&stream=$1 last;
rewrite ^/castamp/(.*)$ destinychat.php?s=castamp&stream=$1 last;
rewrite ^/azubu/(.*)$ destinychat.php?s=azubu&stream=$1 last;
rewrite ^/picarto/(.*)$ destinychat.php?s=picarto&stream=$1 last;
}
location ~ \.php$ {
try_files $uri =404;
fastcgi_pass 127.0.0.1:9001;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /srv/www$fastcgi_script_name;
include fastcgi_params;
add_header X-XSS-Protection "1; mode=block";
}
}
server {
listen *:80;
listen [::]:80;
server_name overrustle.com *.overrustle.com;
# access_log off;
access_log /var/log/nginx/overrustle.log;
error_log /dev/null;
gzip on;
gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;
gzip_min_length 1100;
gzip_buffers 4 32k;
gzip_vary on;
error_page 404 /;
port_in_redirect off;
# root /dev/null;
root /srv/www/overrustle.com;
location / {
index index.php index.html;
autoindex on;
try_files $uri $uri/ @extensionless-php;
add_header X-XSS-Protection "1; mode=block";
}
location ~* \.(gif|jpe?g|png)$ {
expires 24h;
add_header Pragma public;
add_header Cache-Control "public, must-revalidate, proxy-revalidate";
add_header X-XSS-Protection "1; mode=block";
}
location @extensionless-php {
rewrite ^(.*)$ $1.php last;
}
location ~ \.php$ {
try_files $uri =404;
fastcgi_pass 127.0.0.1:9001;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /srv/www$fastcgi_script_name;
include fastcgi_params;
add_header X-XSS-Protection "1; mode=block";
}
}