TheLounge 部署

#Linux  #IRC

install deb packege

thelounge user add
sudo systemctl restart thelounge

nginx config:

server {
    listen 80;
    listen 443 ssl;
    ssl_certificate /etc/letsencrypt/live/file.mistivia.com/fullchain.pem;
    ssl_certificate_key /etc/letsencrypt/live/file.mistivia.com/privkey.pem;
    ssl_protocols       TLSv1 TLSv1.1 TLSv1.2 TLSv1.3;
    ssl_ciphers         HIGH:!aNULL:!MD5;

    if ($scheme != "https") {
        return 301 https://$host$request_uri;
    }

    root /dev/null;
    index index.html index.htm index.nginx-debian.html;
    server_name mail.mistivia.com;
    location / {
        proxy_pass http://127.0.0.1:9000/;
        proxy_http_version 1.1;
        proxy_set_header Connection "upgrade";
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header X-Forwarded-For $remote_addr;
        proxy_set_header X-Forwarded-Proto $scheme;

        # by default nginx times out connections in one minute
        proxy_read_timeout 1d;
    }
}