diff --git a/roles/webserver-legacy/nginx/files/vhosts/nasqueron.org/www.conf b/roles/webserver-legacy/nginx/files/vhosts/nasqueron.org/www.conf new file mode 100644 --- /dev/null +++ b/roles/webserver-legacy/nginx/files/vhosts/nasqueron.org/www.conf @@ -0,0 +1,60 @@ +# ------------------------------------------------------------- +# Webserver +# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +# Project: Nasqueron +# Site: www.nasqueron.org +# License: Trivial work, not eligible to copyright +# Source file: roles/webserver-legacy/nginx/files/vhosts/nasqueron.org/www.conf +# ------------------------------------------------------------- +# +# +# This file is managed by our rOPS SaltStack repository. +# +# Changes to this file may cause incorrect behavior +# and will be lost if the state is redeployed. +# + +# ------------------------------------------------------------- +# Main site +# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + +server { + listen 80; + listen [::]:80; + server_name www.nasqueron.org; + + include includes/tls; + ssl_certificate /usr/local/etc/letsencrypt/live/www.nasqueron.org/fullchain.pem; + ssl_certificate_key /usr/local/etc/letsencrypt/live/www.nasqueron.org/privkey.pem; + + include includes/letsencrypt; + + root /var/wwwroot/nasqueron.org/www; + index index.html index.php index.htm; + + location = /sites.json { + proxy_pass https://api.nasqueron.org/sites.json; + } +} + +# ------------------------------------------------------------- +# Staging area +# Maintained by Dereckson +# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + +server { + listen 80; + listen [::]:80; + server_name www51.nasqueron.org; + + include includes/tls; + ssl_certificate /usr/local/etc/letsencrypt/live/www51.nasqueron.org/fullchain.pem; + ssl_certificate_key /usr/local/etc/letsencrypt/live/www51.nasqueron.org/privkey.pem; + + include includes/letsencrypt; + + root /var/51-wwwroot/www; + index index.html index.php index.htm; + + # We intentionally skip /sites.json, as we want to use directly in JS code api.n.o/sites.json +}