homeassistant-addons/epaper-station/rootfs/etc/nginx/nginx.conf
2023-02-10 16:51:42 +01:00

48 lines
980 B
Nginx Configuration File

load_module /usr/lib/nginx/modules/ndk_http_module.so;
load_module /usr/lib/nginx/modules/ngx_http_lua_module.so;
pcre_jit on;
daemon off;
error_log /dev/stdout info;
events {
}
http {
include mime.types;
charset utf-8;
# access_log /dev/stdout;
server {
server_name localhost;
listen 8099;
allow 172.30.32.2;
deny all;
set_by_lua $uri_lowercase "return string.lower(ngx.var.uri)";
location ~[A-Z] {
return 301 $scheme://$http_host$uri_lowercase$is_args$args;
}
location / {
root /public;
}
location /input_img {
proxy_pass http://localhost:8080/;
}
location /ws {
proxy_pass http://localhost:8000;
proxy_http_version 1.1;
proxy_set_header Connection $http_connection;
proxy_set_header Upgrade $http_upgrade;
}
}
}