-
-
Save ravikyada/dde9be0cc3549be5d4e398d670687cfd 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; | |
server_name test.demo.in; | |
location / { | |
return 301 https://$host$request_uri; | |
} | |
location /.well-known/acme-challenge/ { | |
root /var/www/certbot; | |
} | |
} | |
server { | |
listen 443 ssl; | |
server_name test.demo.in; | |
location / { | |
proxy_pass http://test.demo.in; | |
} | |
ssl_certificate /etc/letsencrypt/live/test.demo.in/fullchain.pem; | |
ssl_certificate_key /etc/letsencrypt/live/test.demo.in/privkey.pem; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment