Created
November 10, 2017 09:45
-
-
Save joltcan/8e10f215d7f3af38f786a4866efbfc61 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 443; | |
server_name acme.int.<domain>; | |
if ($scheme = http) { | |
return 301 https://$server_name$request_uri; | |
} | |
include ssl-params.conf; | |
ssl_certificate /etc/openvpn/ca/keys/acme.int<domain>.crt; | |
ssl_certificate_key /etc/openvpn/ca/keys/acme.int.<domain>.key; | |
index index.html; | |
root /var/www/acme; | |
# basic IP check here, just in case | |
allow 127.0.0.1; | |
allow ::1; | |
allow 172.0.0.0/21; # all our local subnets | |
deny all; | |
location / { | |
try_files $uri $uri/ =404; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment