34 lines
692 B
Nginx Configuration File
34 lines
692 B
Nginx Configuration File
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;
|
|
}
|
|
}
|
|
}
|