#server { # listen 443 ssl; # managed by Certbot # listen [::]:443 ssl; # managed by Certbot # # server_name headphones.tyil.nl; # # ssl_certificate /etc/letsencrypt/live/headphones.tyil.nl/fullchain.pem; # ssl_certificate_key /etc/letsencrypt/live/headphones.tyil.nl/privkey.pem; # # include /etc/nginx/conf.d/ssl.conf; # include /etc/nginx/conf.d/certbot.conf; # # location / { # proxy_pass http://127.0.0.1:8181; # } #} server { listen 80; listen [::]:80; server_name headphones.tyil.nl; include /etc/nginx/conf.d/certbot.conf; access_log /var/log/nginx/nl.tyil.headphones-access.log; error_log /var/log/nginx/nl.tyil.headphones-error.log; # location / { # return 301 https://$host$request_uri; # } location / { proxy_pass http://localhost:8181; } }