Added disable units

This commit is contained in:
Stephen Cochrane 2020-10-15 19:44:30 +02:00
parent efd2761b02
commit 009aea55a7
6 changed files with 63 additions and 0 deletions

3
nginxd
View File

@ -35,12 +35,15 @@ link () {
# add [unit]
add () {
echo TODO: Enable $1
cp $unitsd/$1 /etc/nginx/sites-available
link $1
}
# Remove a unit so that nginx does not use it anymore, also sets up sym links.
# remove [unit]
remove () {
echo TODO: Remove $1
rm /etc/nginx/sites-enabled/$1
}
# Enable or disable all units.

12
units/dblog Normal file
View File

@ -0,0 +1,12 @@
server {
listen 80;
server_name blog.skiqqy.xyz;
location / {
proxy_pass http://localhost:79/error/blog.html;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}

12
units/dgit Normal file
View File

@ -0,0 +1,12 @@
server {
listen 80;
server_name git.skiqqy.xyz;
location / {
proxy_pass http://localhost:79/error/git.html;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}

12
units/dirc Normal file
View File

@ -0,0 +1,12 @@
server {
listen 80;
server_name irc.skiqqy.xyz;
location / {
proxy_pass http://localhost:79/error/irc.html;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}

12
units/dproj Normal file
View File

@ -0,0 +1,12 @@
server {
listen 80;
server_name proj.skiqqy.xyz;
location / {
proxy_pass http://localhost:79/error/proj.html;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}

12
units/dwiki Normal file
View File

@ -0,0 +1,12 @@
server {
listen 80;
server_name wiki.skiqqy.xyz;
location / {
proxy_pass http://localhost:79/error/wiki.html;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}