Changeset View
Changeset View
Standalone View
Standalone View
roles/webserver-legacy/nginx/files/vhosts/nasqueron.org/tools51.conf
- This file was added.
# ------------------------------------------------------------- | |||||
# Webserver | |||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | |||||
# Project: Nasqueron | |||||
# Site: tools51.nasqueron.org | |||||
# License: Trivial work, not eligible to copyright | |||||
# Source file: roles/webserver-legacy/nginx/files/vhosts/nasqueron.org/tools51.conf | |||||
# ------------------------------------------------------------- | |||||
# | |||||
# <auto-generated> | |||||
# 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. | |||||
# </auto-generated> | |||||
server { | |||||
# Maintained by Dereckson | |||||
# Staging area for https://tools.nasqueron.org | |||||
listen 80; | |||||
listen [::]:80; | |||||
server_name tools51.nasqueron.org; | |||||
include includes/tls; | |||||
ssl_certificate /usr/local/etc/letsencrypt/live/assets.nasqueron.org/fullchain.pem; | |||||
ssl_certificate_key /usr/local/etc/letsencrypt/live/assets.nasqueron.org/privkey.pem; | |||||
include includes/letsencrypt; | |||||
root /var/51-wwwroot/tools; | |||||
index index.html index.php index.htm; | |||||
location ~* \.(js|jpg|gif|png|svg|css|txt|eot|woff|ttf)$ { | |||||
expires 30d; | |||||
} | |||||
location = /dl.php { | |||||
include fastcgi_params; | |||||
fastcgi_param SCRIPT_FILENAME /var/51-wwwroot/tools/dl.php; | |||||
fastcgi_pass unix:/var/run/web/tools51.nasqueron.org/php-fpm.sock; | |||||
} | |||||
location / { | |||||
rewrite ^/color/screen/(.+)$ /?Topic=color-screen&Color=$1; | |||||
fastcgi_pass unix:/var/run/web/tools51.nasqueron.org/php-fpm.sock; | |||||
fastcgi_index index.php; | |||||
fastcgi_param SCRIPT_FILENAME /var/51-wwwroot/tools/index.php; | |||||
include fastcgi_params; | |||||
} | |||||
} |
Nasqueron DevCentral · If it had been much bigger the moon would have had a core of ice. · Powered by Phabricator