Added disable units
This commit is contained in:
parent
efd2761b02
commit
009aea55a7
3
nginxd
3
nginxd
|
@ -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.
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
|
@ -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;
|
||||
}
|
||||
}
|
|
@ -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;
|
||||
}
|
||||
}
|
|
@ -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;
|
||||
}
|
||||
}
|
|
@ -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;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue