2022-07-02 10:24:10 -05:00
|
|
|
server {
|
|
|
|
listen 443 ssl http2;
|
|
|
|
server_name irc.aninix.net;
|
|
|
|
|
2023-11-09 13:03:06 -06:00
|
|
|
include conf/sec.conf;
|
|
|
|
include conf/default.csp.conf;
|
|
|
|
include conf/letsencrypt.conf;
|
2022-07-02 10:24:10 -05:00
|
|
|
|
|
|
|
location /
|
|
|
|
{
|
2025-10-21 13:52:25 -05:00
|
|
|
root /usr/share/kiwiirc;
|
|
|
|
autoindex on;
|
|
|
|
autoindex_format html;
|
2022-07-02 10:24:10 -05:00
|
|
|
}
|
2025-10-21 15:31:32 -05:00
|
|
|
|
|
|
|
location /websocket/ {
|
|
|
|
proxy_pass http://unix:/run/inspircd/websocket.sock;
|
|
|
|
|
|
|
|
proxy_http_version 1.1;
|
|
|
|
|
|
|
|
proxy_set_header Host $host;
|
|
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
|
|
proxy_set_header Connection "upgrade";
|
|
|
|
|
|
|
|
proxy_set_header X-Original-Host $host;
|
|
|
|
proxy_set_header X-Original-Protocol $scheme;
|
|
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
|
|
|
|
|
|
proxy_set_header X-Forwarded-Host $host;
|
|
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
|
|
|
proxy_set_header X-Forwarded-For $remote_addr;
|
|
|
|
}
|
2022-07-02 10:24:10 -05:00
|
|
|
}
|