Initial commit

This commit is contained in:
Norbert Tretkowski 2025-05-22 06:54:23 +02:00
commit 7954ae4bd3
Signed by: norbert
GPG key ID: EAA31A3693AAB231
7 changed files with 367 additions and 0 deletions

34
mollysocket/nginx.conf Normal file
View file

@ -0,0 +1,34 @@
worker_processes 1;
events {
worker_connections 1024;
}
http {
server {
listen 80;
listen [::]:80;
server_name mollysocket.tretkowski.de;
location / {
return 301 https://$host$request_uri;
}
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name mollysocket.tretkowski.de;
ssl_certificate /etc/letsencrypt/live/mollysocket.tretkowski.de/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/mollysocket.tretkowski.de/privkey.pem;
location / {
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header Host $http_host;
proxy_pass http://mollysocket:8020;
}
}
}