Skip to content

Instantly share code, notes, and snippets.

@ItsOnlyBinary
Created May 12, 2019 12:40
Show Gist options
  • Save ItsOnlyBinary/5fe3bb7238c868679f3516b508b3faf2 to your computer and use it in GitHub Desktop.
Save ItsOnlyBinary/5fe3bb7238c868679f3516b508b3faf2 to your computer and use it in GitHub Desktop.
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