server { listen 80; listen [::]:80; server_name forums.fluffy.is; location / { proxy_max_temp_file_size 0; proxy_set_header Host "forums.fluffy.is"; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $remote_addr; proxy_set_header X-Forwarded-Host $http_host:80; proxy_pass http://10.1.0.4:81; } } server { listen 443 ssl; listen [::]:443 ssl; server_name forums.fluffy.is; ssl on; ssl_certificate /etc/certificates/is.fluffy.forums/crt; ssl_certificate_key /etc/certificates/is.fluffy.forums/key; location / { proxy_max_temp_file_size 0; proxy_set_header Host "forums.fluffy.is"; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $remote_addr; proxy_set_header X-Forwarded-Host $http_host:80; proxy_pass http://10.1.0.4:81; } }