41 lines
1.3 KiB
Django/Jinja
41 lines
1.3 KiB
Django/Jinja
{{ ansible_managed | comment }}
|
|
|
|
server {
|
|
listen 80;
|
|
listen [::]:80;
|
|
server_name {{ ha_domains | join(' ') }};
|
|
|
|
proxy_buffering off;
|
|
|
|
location / {
|
|
proxy_pass http://127.0.0.1:8123;
|
|
proxy_set_header Host $host;
|
|
proxy_redirect http:// https://;
|
|
proxy_http_version 1.1;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
proxy_set_header Connection "upgrade";
|
|
}
|
|
|
|
location /api/websocket {
|
|
proxy_pass http://127.0.0.1:8123;
|
|
proxy_set_header Host $host;
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
proxy_set_header Connection "upgrade";
|
|
}
|
|
|
|
location /grafana {
|
|
client_max_body_size 1024M;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
proxy_set_header Host $http_host;
|
|
proxy_pass http://localhost:3000;
|
|
}
|
|
|
|
location = /pgadmin4 { rewrite ^ /pgadmin4/; }
|
|
location /pgadmin4 { try_files $uri @pgadmin4; }
|
|
location @pgadmin4 {
|
|
include uwsgi_params;
|
|
uwsgi_pass unix:/run/pgadmin4/pgadmin4.sock;
|
|
}
|
|
} |