-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdefault.conf
158 lines (123 loc) · 3.48 KB
/
default.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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
server {
listen 80;
charset utf-8;
server_name forum.usp.game.dev.br;
location / {
return 301 https://$host$request_uri;
}
include /etc/nginx/shared/letsencrypt.conf;
}
server {
charset utf-8;
include /etc/nginx/shared/ssl.conf;
location = / {
try_files $uri @website;
}
location / {
root /var/www/static;
autoindex on;
try_files $uri
$uri/index.html
$uri/
@website;
}
location @website {
root /var/www/static/website;
autoindex on;
}
location @blog {
proxy_pass http://blog;
include /etc/nginx/shared/proxy.conf;
}
location /wiki2/ {
proxy_pass http://bookstack:8080/;
include /etc/nginx/shared/proxy.conf;
}
location /wiki/ {
proxy_pass http://wiki/wiki/;
include /etc/nginx/shared/proxy.conf;
}
location /chat/ {
proxy_pass http://chat:8000/;
include /etc/nginx/shared/proxy.conf;
}
location /mediawiki/ {
proxy_pass http://wiki/;
include /etc/nginx/shared/proxy.conf;
}
location /tt-rss/ {
proxy_pass http://uspgamedev.org:8080/;
include /etc/nginx/shared/proxy.conf;
}
location /smf {
return 301 $scheme://forum.usp.game.dev.br/;
}
location /forum {
return 301 $scheme://forum.usp.game.dev.br/;
}
location /ggj2021 {
return 302 https://sites.google.com/ime.usp.br/ggj-usp-2021/;
}
location /ggj2022 {
return 302 https://sites.google.com/usp.br/ggj2022/;
}
location /ws {
proxy_pass http://172.17.0.1:4321;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
include /etc/nginx/shared/proxy.conf;
}
location /metrics {
auth_basic "Metrics";
auth_basic_user_file /etc/nginx/shared/htpasswd;
proxy_pass http://node-exporter:9100/metrics;
include /etc/nginx/shared/proxy.conf;
}
include /etc/nginx/shared/letsencrypt.conf;
}
server {
charset utf-8;
server_name blog.usp.game.dev.br blog.uspgamedev.org;
include /etc/nginx/shared/ssl.conf;
location / {
proxy_pass http://blog;
add_header Access-Control-Allow-Origin *;
include /etc/nginx/shared/proxy.conf;
}
include /etc/nginx/shared/letsencrypt.conf;
}
server {
charset utf-8;
server_name forum.usp.game.dev.br;
include /etc/nginx/shared/ssl.conf;
location / {
proxy_pass http://unix:/var/discourse/nginx.http.sock:;
proxy_set_header Host $http_host;
proxy_http_version 1.1;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto https;
}
include /etc/nginx/shared/letsencrypt.conf;
}
server {
charset utf-8;
server_name grafana.usp.game.dev.br grafana.uspgamedev.org;
listen 80;
# include /etc/nginx/shared/ssl.conf;
location / {
proxy_pass http://grafana:3000;
include /etc/nginx/shared/proxy.conf;
}
include /etc/nginx/shared/letsencrypt.conf;
}
server {
include /etc/nginx/shared/ssl.conf;
server_name forum.uspgamedev.org;
return 307 $scheme://forum.usp.game.dev.br$request_uri;
}
server {
include /etc/nginx/shared/ssl.conf;
server_name www.uspgamedev.org uspgamedev.org;
return 307 $scheme://usp.game.dev.br$request_uri;
}