homeassistant-addons/epaper-station/rootfs/etc/nginx/nginx.conf

43 lines
792 B
Nginx Configuration File
Raw Normal View History

2023-02-06 22:23:51 +00:00
daemon off;
2023-02-06 22:32:46 +00:00
error_log /dev/stdout info;
2023-02-06 23:55:46 +00:00
2023-02-06 22:23:51 +00:00
events {
}
http {
include mime.types;
charset utf-8;
2023-02-07 00:09:40 +00:00
# access_log /dev/stdout;
2023-02-06 22:23:51 +00:00
2023-02-07 00:12:19 +00:00
map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}
2023-02-06 22:23:51 +00:00
server {
server_name localhost;
2023-02-07 18:46:39 +00:00
listen 8099;
allow 172.30.32.2;
deny all;
2023-02-06 22:23:51 +00:00
location / {
root /public;
}
2023-02-06 23:25:36 +00:00
location /input_img {
2023-02-07 00:04:56 +00:00
proxy_pass http://localhost:8080/;
2023-02-06 23:25:36 +00:00
}
2023-02-06 22:23:51 +00:00
location /ws {
2023-02-06 22:58:38 +00:00
proxy_pass http://localhost:8000;
2023-02-06 22:23:51 +00:00
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_set_header Host $host;
}
}
}