|
|
@@ -4,17 +4,30 @@ upstream django {
|
|
|
#server 127.0.0.1:8001; # Web port socket for use with uwsgi-hello-world-test.py
|
|
|
}
|
|
|
|
|
|
+# HTTPS redirect
|
|
|
server {
|
|
|
listen 80 default_server;
|
|
|
listen [::]:80 default_server;
|
|
|
server_name _;
|
|
|
- return 301 https://h0v1n8.nl/$request_uri;
|
|
|
+ #return 301 https://h0v1n8.nl$request_uri;
|
|
|
+ return 301 https://$request;
|
|
|
+}
|
|
|
+
|
|
|
+# RotBot redirect. rotbot.h0v1n8.nl is the pointer record for the vps, so the bot looks cooler on IRC.
|
|
|
+server {
|
|
|
+ listen 443 ssl;
|
|
|
+ listen [::]:443 ssl;
|
|
|
+ server_name rotbot.h0v1n8.nl;
|
|
|
+ ssl_certificate /etc/letsencrypt/live/h0v1n8.nl/fullchain.pem;
|
|
|
+ ssl_certificate_key /etc/letsencrypt/live/h0v1n8.nl/privkey.pem;
|
|
|
+ return 301 https://h0v1n8.nl/rotbot$request_uri;
|
|
|
}
|
|
|
|
|
|
# Configuration of the server
|
|
|
server {
|
|
|
# the port your site will be served on
|
|
|
listen 443 ssl;
|
|
|
+ listen [::]:443 ssl;
|
|
|
# the domain name it will serve for
|
|
|
server_name h0v1n8.nl www.h0v1n8.nl; # substitute your machine's IP address or FQDN
|
|
|
ssl_certificate /etc/letsencrypt/live/h0v1n8.nl/fullchain.pem;
|