/
nginx.conf
115 lines (85 loc) · 2.62 KB
/
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
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
# nginx configuration for the scoreboard
server {
listen 80;
charset utf-8;
server_tokens off;
more_set_headers 'Server: CTF';
client_max_body_size 1K;
gzip on;
gzip_types image/png text/css;
include mime.types;
types {
text/plain py;
}
error_page 400 /error/bad-request/;
error_page 403 =404 /error/page-not-found/;
error_page 404 /error/page-not-found/;
error_page 500 501 502 503 504 /error/server-error/;
location = /favicon.ico {
alias /home/scoreboard/static/images/favicon.ico;
}
location = /robots.txt {
alias /home/scoreboard/static/robots.txt;
}
location /static {
alias /home/scoreboard/static;
}
location /challenges/web-clicks/puzzle/ {
proxy_pass http://web-clicks:80/;
}
location /challenges/crypto-tags/puzzle/ {
proxy_pass http://crypto-tags:80/;
}
location /challenges/web-admin/puzzle/ {
proxy_pass http://web-admin:8888/;
}
location /challenges/crypto-algebraic/puzzle/ {
proxy_pass http://crypto-algebraic:8888/;
}
location /challenges/web-call/puzzle/ {
proxy_pass http://web-call:8888/;
}
location /challenges/python-zero/puzzle/ {
proxy_pass http://python-zero:8888/;
}
location /challenges/python-alphabet/puzzle/ {
proxy_pass http://python-alphabet:8888/;
}
location /challenges/python-setup/puzzle/ {
proxy_pass http://python-setup:8888/;
}
location /challenges/python-arguments/puzzle/ {
proxy_pass http://python-arguments:8888/;
}
location /challenges/python-sandbox/puzzle/ {
proxy_pass http://python-sandbox:8888/;
}
location /challenges/python-yam/puzzle/ {
proxy_pass http://python-yam:8888/;
}
location /challenges/python-format/puzzle/ {
proxy_pass http://python-format:8888/;
}
location /challenges/web-sqli/puzzle/ {
proxy_pass http://web-sqli:8888/;
}
location /challenges/web-sequel/puzzle/ {
proxy_pass http://web-sequel:8888/;
}
location /challenges/web-hidden/puzzle/ {
proxy_pass http://web-hidden:80/;
}
location /challenges/web-guestbook/puzzle/ {
proxy_pass http://web-guestbook:8888/;
}
location /challenges/python-code/puzzle/ {
proxy_pass http://python-code:8888/;
}
location /challenges/python-underscore/puzzle/ {
proxy_pass http://python-underscore:8888/;
}
location / {
uwsgi_pass unix:///home/scoreboard/site.sock;
include /home/scoreboard/uwsgi_params;
}
}