Add thelounge

This commit is contained in:
Samuel Ortion 2022-06-28 08:24:54 +02:00
parent 1d402cd3dc
commit 59c9d6d683
4 changed files with 70 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.env

View File

@ -0,0 +1,2 @@
#!/bin/sh
docker exec --user node -it thelounge thelounge add unclesamulus

View File

@ -0,0 +1,10 @@
version: '3'
services:
thelounge:
image: thelounge/thelounge:latest
container_name: thelounge
ports:
- "9000:9000"
restart: always
volumes:
- ~/.thelounge:/var/opt/thelounge # bind lounge config from the host's file system

View File

@ -0,0 +1,57 @@
# nginx reverse proxy for nextthelounge
server {
server_name thelounge.s1gm4.eu;
listen 80;
listen [::]:80;
# Redirect to https
location / {
redirect 302 https://$server_name$request_uri;
}
# For dehydrated ssl certification
location /.well-known/acme-challenge {
alias /var/www/dehydrated/acme-challenges;
}
}
server {
# SSL configuration
#
listen 443 ssl;
listen [::]:443 ssl;
#
ssl_certificate /var/www/dehydrated/certs/thelounge.s1gm4.eu/fullchain.pem;
ssl_certificate_key /var/www/dehydrated/certs/thelounge.s1gm4.eu/privkey.pem;
# Add index.php to the list if you are using PHP
index index.html index.htm index.php;
server_name thelounge.s1gm4.eu;
# deny access to .htaccess files, if Apache's document root
# concurs with nginx's one
#
location ~ /\.ht {
deny all;
}
# For dehydrated ssl certification
location /.well-known/acme-challenge {
alias /var/www/dehydrated/acme-challenges;
}
location / {
proxy_pass http://localhost: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;
}
}