-
Notifications
You must be signed in to change notification settings - Fork 0
/
nginx.conf
72 lines (52 loc) · 1.82 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
pid /run/stupidchess-nginx/nginx.pid;
error_log stderr;
events {}
http {
include /etc/nginx/mime.types;
include /etc/nginx/uwsgi_params;
log_format main '$remote_addr - $remote_user [$time_local] '
'"$request" $status $request_length $body_bytes_sent '
'"$http_referer" "$http_user_agent" '
'rt="$request_time" uct="$upstream_connect_time" uht="$upstream_header_time" urt="$upstream_response_time"';
server {
listen unix:/run/stupidchess-nginx/nginx.sock;
access_log syslog:server=unix:/dev/log main;
# Android favicons
location = /manifest.json {
root /etc/stupidchess/dist/favicons;
}
location ~ ^/android-chrome-.*.png$ {
root /etc/stupidchess/dist/favicons;
}
# Apple favicons
location = /apple-touch-icon.png {
root /etc/stupidchess/dist/favicons;
}
location = /safari-pinned-tab.svg {
root /etc/stupidchess/dist/favicons;
}
# Microsoft favicons
location ~ ^/mstile.* {
root /etc/stupidchess/dist/favicons;
}
location = /browserconfig.xml {
root /etc/stupidchess/dist/favicons;
}
# Web favicons
location ~ ^/favicon.* {
root /etc/stupidchess/dist/favicons;
}
# Application files
location = /frontend-version.json {
root /etc/stupidchess/dist/;
}
location ~ ^/(js|css|img)/ {
root /etc/stupidchess/dist/;
}
location / {
access_log syslog:server=unix:/dev/log main;
access_log syslog:server=unix:/run/stupidchess-nginx-exporter/syslog.sock main;
uwsgi_pass unix:///run/stupidchess/uwsgi.sock;
}
}
}