Created
June 2, 2017 08:46
-
-
Save Kunsi/ca8fa88c712eb9f9582a6247c88ef4a9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 80; | |
listen [::]:80; | |
server_name opalblau.ddd.kunbox.net; | |
return 301 https://$server_name$request_uri; | |
} | |
server { | |
listen 443; | |
listen [::]:443; | |
server_name opalblau.ddd.kunbox.net; | |
index index.php index.html | |
charset utf-8; | |
access_log off; | |
log_not_found off; | |
sendfile off; | |
ssl on; | |
ssl_certificate /var/lib/acme/live/opalblau.ddd.kunbox.net/fullchain; | |
ssl_certificate_key /var/lib/acme/live/opalblau.ddd.kunbox.net/privkey; | |
ssl_protocols TLSv1 TLSv1.1 TLSv1.2; | |
ssl_ciphers 'EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH'; | |
# ssl_dhparam /etc/ssl/certs/dhparam.pem; | |
ssl_prefer_server_ciphers on; | |
ssl_session_cache shared:SSL:10m; | |
root /var/www/; | |
location /.well-known/acme-challenge/ { | |
alias /var/run/acme/acme-challenge/; | |
} | |
location / { | |
proxy_pass http://127.0.0.1:5000; | |
proxy_set_header Host $host; | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header X-Scheme https; | |
proxy_set_header Upgrade $http_upgrade; | |
proxy_set_header Connection "upgrade"; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
} | |
location /webcam/ { | |
proxy_pass http://127.0.0.1:8080/?action=stream; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment