Initial commit
This commit is contained in:
commit
7954ae4bd3
7 changed files with 367 additions and 0 deletions
34
mollysocket/nginx.conf
Normal file
34
mollysocket/nginx.conf
Normal 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;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue