Created
May 12, 2019 12:40
-
-
Save ItsOnlyBinary/5fe3bb7238c868679f3516b508b3faf2 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 irc.example.com; | |
include /etc/nginx/extra/certbot.conf; | |
location / { | |
return 301 https://$server_name$request_uri; | |
} | |
} | |
server { | |
listen 443 ssl; | |
listen [::]:443 ssl; | |
server_name irc.example.com; | |
ssl_certificate /etc/letsencrypt/live/irc.example.com/fullchain.pem; | |
ssl_certificate_key /etc/letsencrypt/live/irc.example.com/privkey.pem; | |
access_log /var/log/nginx/irc/access-ssl.log main; | |
error_log /var/log/nginx/irc/error-ssl.log; | |
include /etc/nginx/extra/kiwiirc.conf; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment