ismism/nginx.conf
2022-11-17 14:34:37 +08:00

57 lines
1.2 KiB
Nginx Configuration File

events {
}
http {
server_tokens off;
# ssl_protocols TLSv1.2 TLSv1.3;
types {
text/html html;
text/css css;
application/javascript js;
image/webp webp;
}
server {
listen 80;
root ui;
gzip on;
access_log log/access.log combined;
error_log log/error.log error;
location = /favicon.ico {
access_log off;
log_not_found off;
}
location = / {
try_files /index.html =404;
}
location /cast/ {
auth_request /aut;
auth_request_set $auth_status $upstream_status;
}
location /aut {
internal;
proxy_pass http://127.0.0.1:728/aut$request_uri;
proxy_pass_request_body off;
proxy_set_header Content-Length "";
# proxy_set_header X-Original-URI $request_uri;
}
# location / {
# types {
# }
# default_type text/plain;
# return 418 "teapot $realpath_root $document_root";
# }
# location /red/ {
# return 404 "";
# }
}
}