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

31 lines
575 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 22:23:51 +00:00
events {
}
http {
include mime.types;
charset utf-8;
2023-02-06 22:32:46 +00:00
access_log /dev/stdout;
2023-02-06 22:23:51 +00:00
server {
server_name localhost;
listen 0.0.0.0:4242;
location / {
root /public;
}
location /ws {
proxy_pass http://localhost:8000;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_set_header Host $host;
}
}
}