-
Notifications
You must be signed in to change notification settings - Fork 0
/
default.conf
37 lines (31 loc) · 1 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
log_format json_combined escape=json
'{'
'"timestamp":"$time_iso8601",'
'"remote_addr":"$remote_addr",'
'"remote_user":"$remote_user",'
'"request":"$request",'
'"status": "$status",'
'"body_bytes_sent":"$body_bytes_sent",'
'"request_time":"$request_time",'
'"http_referrer":"$http_referer",'
'"http_user_agent":"$http_user_agent"'
'}';
server {
access_log /dev/stdout json_combined;
listen 80;
listen [::]:80;
server_name localhost;
add_header 'Permissions-Policy' 'camera=(self "https://app.profcomff.com" "https://app.test.profcomff.com" "https://www.profcomff.com")';
location / {
root /usr/share/nginx/html;
index index.html index.htm;
try_files $uri /index.html;
}
# location /js/app.js {
# return 302 https://$host/APPJS_NAME;
# }
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
}