mirror of
https://github.com/LowderPlay/cheburcheck.git
synced 2026-10-15 14:03:56 +00:00
Some checks are pending
Build Rust Application / Linux amd64 (.deb) (push) Waiting to run
Build Rust Application / Linux arm64 (.deb via cross) (push) Waiting to run
Build Rust Application / Windows amd64 (push) Waiting to run
CodeQL Advanced / Analyze (rust) (push) Waiting to run
Build and Publish Docker Images / Build website image (push) Waiting to run
Build and Publish Docker Images / Build frontend image (push) Waiting to run
Build and Publish Docker Images / Deploy (push) Blocked by required conditions
Build Probe / Linux amd64 binary and .deb (push) Waiting to run
Build Probe / Linux arm64 binary, .deb, and OpenWrt packages (push) Waiting to run
Build Probe / Windows amd64 binary (push) Waiting to run
Build Probe / Docker image amd64/arm64 (push) Waiting to run
* feat: autoupdate * chore: bump version * feat: publish installer * fix: standalone builds * ci: release docs * fix: windows icmp socket * docs: windows notice * docs: remove line breaks
70 lines
1.5 KiB
Nginx Configuration File
70 lines
1.5 KiB
Nginx Configuration File
upstream website_backend {
|
|
server website:8000;
|
|
}
|
|
|
|
upstream frontend {
|
|
server frontend:3000;
|
|
}
|
|
|
|
upstream mqtt_ws {
|
|
server rmqtt:8080;
|
|
}
|
|
|
|
map $http_upgrade $connection_upgrade {
|
|
default upgrade;
|
|
'' close;
|
|
}
|
|
|
|
server {
|
|
listen 80;
|
|
server_name _;
|
|
|
|
set_real_ip_from 172.16.0.0/12;
|
|
real_ip_header X-Forwarded-For;
|
|
real_ip_recursive on;
|
|
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Host $host;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
|
|
|
location /api/v1/ {
|
|
proxy_buffering off;
|
|
proxy_cache off;
|
|
proxy_read_timeout 60s;
|
|
proxy_pass http://website_backend;
|
|
}
|
|
|
|
location /agency/ {
|
|
proxy_pass http://website_backend;
|
|
}
|
|
|
|
location /whitelist/ {
|
|
proxy_pass http://website_backend;
|
|
}
|
|
|
|
location = /install-probe.sh {
|
|
proxy_pass http://website_backend;
|
|
}
|
|
|
|
location /mqtt {
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
proxy_set_header Connection $connection_upgrade;
|
|
proxy_set_header Sec-WebSocket-Protocol $http_sec_websocket_protocol;
|
|
proxy_read_timeout 1h;
|
|
proxy_send_timeout 1h;
|
|
proxy_pass http://mqtt_ws;
|
|
}
|
|
|
|
location /feedback/ {
|
|
proxy_pass http://website_backend/api/v1/feedback/;
|
|
}
|
|
|
|
location / {
|
|
proxy_buffer_size 32k;
|
|
proxy_buffers 8 32k;
|
|
proxy_busy_buffers_size 64k;
|
|
proxy_pass http://frontend;
|
|
}
|
|
}
|