Browse Source

updating conf file names

bluebear
Charles Reid 7 years ago
parent
commit
b7c7e8d220
  1. 46
      conf.d/http.blue.charlesreid1.conf
  2. 46
      conf.d/http.com.charlesreid1.conf
  3. 46
      conf.d/http.red.charlesreid1.conf
  4. 165
      conf.d/https.blue.charlesreid1.conf
  5. 165
      conf.d/https.com.charlesreid1.conf
  6. 169
      conf.d/https.red.charlesreid1.conf
  7. 43
      conf.d/port3000.com.charlesreid1.conf

46
conf.d/http.blue.charlesreid1.conf

@ -0,0 +1,46 @@ @@ -0,0 +1,46 @@
####################
#
# charlesreid1.blue
# http
# 80
#
# basically, just redirects to https
#
####################
server {
listen 80;
listen [::]:80;
server_name charlesreid1.blue;
location / {
return 301 https://charlesreid1.blue$request_uri;
}
}
server {
listen 80;
listen [::]:80;
server_name www.charlesreid1.blue;
location / {
return 301 https://www.charlesreid1.blue$request_uri;
}
}
server {
listen 80;
listen [::]:80;
server_name git.charlesreid1.blue;
location / {
return 301 https://git.charlesreid1.blue$request_uri;
}
}
server {
listen 80;
listen [::]:80;
server_name files.charlesreid1.blue;
location / {
return 301 https://files.charlesreid1.blue$request_uri;
}
}

46
conf.d/http.com.charlesreid1.conf

@ -0,0 +1,46 @@ @@ -0,0 +1,46 @@
####################
#
# charlesreid1.com
# http
# 80
#
# basically, just redirects to https
#
####################
server {
listen 80;
listen [::]:80;
server_name charlesreid1.com;
location / {
return 301 https://charlesreid1.com$request_uri;
}
}
server {
listen 80;
listen [::]:80;
server_name www.charlesreid1.com;
location / {
return 301 https://www.charlesreid1.com$request_uri;
}
}
server {
listen 80;
listen [::]:80;
server_name git.charlesreid1.com;
location / {
return 301 https://git.charlesreid1.com$request_uri;
}
}
server {
listen 80;
listen [::]:80;
server_name files.charlesreid1.com;
location / {
return 301 https://files.charlesreid1.com$request_uri;
}
}

46
conf.d/http.red.charlesreid1.conf

@ -0,0 +1,46 @@ @@ -0,0 +1,46 @@
####################
#
# charlesreid1.red
# http
# 80
#
# basically, just redirects to https
#
####################
server {
listen 80;
listen [::]:80;
server_name charlesreid1.red;
location / {
return 301 https://charlesreid1.red$request_uri;
}
}
server {
listen 80;
listen [::]:80;
server_name www.charlesreid1.red;
location / {
return 301 https://www.charlesreid1.red$request_uri;
}
}
server {
listen 80;
listen [::]:80;
server_name git.charlesreid1.red;
location / {
return 301 https://git.charlesreid1.red$request_uri;
}
}
server {
listen 80;
listen [::]:80;
server_name files.charlesreid1.red;
location / {
return 301 https://files.charlesreid1.red$request_uri;
}
}

165
conf.d/https.blue.charlesreid1.conf

@ -0,0 +1,165 @@ @@ -0,0 +1,165 @@
####################
#
# charlesreid1.blue
# https
# 443
#
# charlesreid1.blue and www.charlesreid1.blue
# should handle the following cases:
# - w/ and wiki/ should reverse proxy story_mw
# - phpMyAdmin/ should reverse proxy stormy_myadmin
#
# git.charlesreid1.blue should handle:
# - all requests should reverse proxy stormy_gitea
#
####################
server {
# https://charlesreid1.blue
listen 443;
listen [::]:443;
server_name charlesreid1.blue;
ssl on;
ssl_certificate /etc/letsencrypt/live/charlesreid1.blue/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/charlesreid1.blue/privkey.pem;
include /etc/letsencrypt/options-ssl-nginx.conf;
client_max_body_size 100m;
location / {
try_files $uri $uri/ =404;
root /www/charlesreid1.blue/htdocs;
index index.html;
}
location /wiki/ {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header Host $host;
proxy_pass http://stormy_mw:8989/wiki/;
}
location /wiki {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header Host $host;
proxy_pass http://stormy_mw:8989/wiki;
}
location /w/ {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header Host $host;
proxy_pass http://stormy_mw:8989/w/;
}
location /w {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header Host $host;
proxy_pass http://stormy_mw:8989/w;
}
location /phpMyAdmin/ {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header Host $host;
proxy_pass http://stormy_myadmin:80/;
}
# ~ means case-sensitive regex match, rather than string literal
# (ignores .git, .gitignore, etc.)
location ~ /\.git {
deny all;
}
}
server {
# https://www.charlesreid1.blue
listen 443;
listen [::]:443;
server_name www.charlesreid1.blue;
ssl on;
ssl_certificate /etc/letsencrypt/live/www.charlesreid1.blue/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/www.charlesreid1.blue/privkey.pem;
include /etc/letsencrypt/options-ssl-nginx.conf;
client_max_body_size 100m;
location / {
try_files $uri $uri/ =404;
root /www/charlesreid1.blue/htdocs;
index index.html;
}
location /wiki/ {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header Host $host;
proxy_pass http://stormy_mw:8989/wiki/;
}
location /w/ {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header Host $host;
proxy_pass http://stormy_mw:8989/w/;
}
location /phpMyAdmin/ {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header Host $host;
proxy_pass http://stormy_myadmin:80/;
}
location ~ /\.git {
deny all;
}
}
server {
# https://git.charlesreid1.blue
listen 443;
listen [::]:443;
server_name git.charlesreid1.blue;
ssl on;
ssl_certificate /etc/letsencrypt/live/git.charlesreid1.blue/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/git.charlesreid1.blue/privkey.pem;
include /etc/letsencrypt/options-ssl-nginx.conf;
client_max_body_size 100m;
location / {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header Host $host;
proxy_pass http://stormy_gitea:3000/;
}
}
server {
# https://files.charlesreid1.blue
listen 443;
listen [::]:443;
server_name files.charlesreid1.blue;
ssl on;
ssl_certificate /etc/letsencrypt/live/files.charlesreid1.blue/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/files.charlesreid1.blue/privkey.pem;
include /etc/letsencrypt/options-ssl-nginx.conf;
client_max_body_size 100m;
location / {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header Host $host;
proxy_pass http://stormy_files:8081/;
}
}

165
conf.d/https.com.charlesreid1.conf

@ -0,0 +1,165 @@ @@ -0,0 +1,165 @@
####################
#
# charlesreid1.com
# https
# 443
#
# charlesreid1.com and www.charlesreid1.com
# should handle the following cases:
# - w/ and wiki/ should reverse proxy story_mw
# - phpMyAdmin/ should reverse proxy stormy_myadmin
#
# git.charlesreid1.com should handle:
# - all requests should reverse proxy stormy_gitea
#
####################
server {
# https://charlesreid1.com
listen 443;
listen [::]:443;
server_name charlesreid1.com default_server;
ssl on;
ssl_certificate /etc/letsencrypt/live/charlesreid1.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/charlesreid1.com/privkey.pem;
include /etc/letsencrypt/options-ssl-nginx.conf;
client_max_body_size 100m;
location / {
try_files $uri $uri/ =404;
root /www/charlesreid1.com/htdocs;
index index.html;
}
location /wiki/ {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header Host $host;
proxy_pass http://stormy_mw:8989/wiki/;
}
location /wiki {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header Host $host;
proxy_pass http://stormy_mw:8989/wiki;
}
location /w/ {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header Host $host;
proxy_pass http://stormy_mw:8989/w/;
}
location /w {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header Host $host;
proxy_pass http://stormy_mw:8989/w;
}
location /phpMyAdmin/ {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header Host $host;
proxy_pass http://stormy_myadmin:80/;
}
# ~ means case-sensitive regex match, rather than string literal
# (ignores .git, .gitignore, etc.)
location ~ /\.git {
deny all;
}
}
server {
# https://www.charlesreid1.com
listen 443;
listen [::]:443;
server_name www.charlesreid1.com;
ssl on;
ssl_certificate /etc/letsencrypt/live/www.charlesreid1.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/www.charlesreid1.com/privkey.pem;
include /etc/letsencrypt/options-ssl-nginx.conf;
client_max_body_size 100m;
location / {
try_files $uri $uri/ =404;
root /www/charlesreid1.com/htdocs;
index index.html;
}
location /wiki/ {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header Host $host;
proxy_pass http://stormy_mw:8989/wiki/;
}
location /w/ {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header Host $host;
proxy_pass http://stormy_mw:8989/w/;
}
location /phpMyAdmin/ {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header Host $host;
proxy_pass http://stormy_myadmin:80/;
}
location ~ /\.git {
deny all;
}
}
server {
# https://git.charlesreid1.com
listen 443;
listen [::]:443;
server_name git.charlesreid1.com;
ssl on;
ssl_certificate /etc/letsencrypt/live/git.charlesreid1.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/git.charlesreid1.com/privkey.pem;
include /etc/letsencrypt/options-ssl-nginx.conf;
client_max_body_size 100m;
location / {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header Host $host;
proxy_pass http://stormy_gitea:3000/;
}
}
server {
# https://files.charlesreid1.com
listen 443;
listen [::]:443;
server_name files.charlesreid1.com;
ssl on;
ssl_certificate /etc/letsencrypt/live/files.charlesreid1.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/files.charlesreid1.com/privkey.pem;
include /etc/letsencrypt/options-ssl-nginx.conf;
client_max_body_size 100m;
location / {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header Host $host;
proxy_pass http://stormy_files:8081/;
}
}

169
conf.d/https.red.charlesreid1.conf

@ -0,0 +1,169 @@ @@ -0,0 +1,169 @@
####################
#
# charlesreid1.red
# https
# 443
#
# charlesreid1.red and www.charlesreid1.red
# should handle the following cases:
# - w/ and wiki/ should reverse proxy story_mw
# - phpMyAdmin/ should reverse proxy stormy_myadmin
#
# git.charlesreid1.red should handle:
# - all requests should reverse proxy stormy_gitea
#
####################
server {
# https://charlesreid1.red
listen 443;
listen [::]:443;
server_name charlesreid1.red;
ssl on;
ssl_certificate /etc/letsencrypt/live/charlesreid1.red/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/charlesreid1.red/privkey.pem;
include /etc/letsencrypt/options-ssl-nginx.conf;
client_max_body_size 100m;
location / {
try_files $uri $uri/ =404;
root /www/charlesreid1.red/htdocs;
index index.html;
}
location /wiki/ {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
#proxy_set_header Host $host;
proxy_set_header Host https://charlesreid1.red;
proxy_pass http://stormy_mw:8989/wiki/;
}
location /wiki {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
#proxy_set_header Host $host;
proxy_set_header Host https://charlesreid1.red;
proxy_pass http://stormy_mw:8989/wiki;
}
location /w/ {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
#proxy_set_header Host $host;
proxy_set_header Host https://charlesreid1.red;
proxy_pass http://stormy_mw:8989/w/;
}
location /w {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
#proxy_set_header Host $host;
proxy_set_header Host https://charlesreid1.red;
proxy_pass http://stormy_mw:8989/w;
}
location /phpMyAdmin/ {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header Host $host;
proxy_pass http://stormy_myadmin:80/;
}
# ~ means case-sensitive regex match, rather than string literal
# (ignores .git, .gitignore, etc.)
location ~ /\.git {
deny all;
}
}
server {
# https://www.charlesreid1.red
listen 443;
listen [::]:443;
server_name www.charlesreid1.red;
ssl on;
ssl_certificate /etc/letsencrypt/live/www.charlesreid1.red/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/www.charlesreid1.red/privkey.pem;
include /etc/letsencrypt/options-ssl-nginx.conf;
client_max_body_size 100m;
location / {
try_files $uri $uri/ =404;
root /www/charlesreid1.red/htdocs;
index index.html;
}
location /wiki/ {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header Host $host;
proxy_pass http://stormy_mw:8989/wiki/;
}
location /w/ {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header Host $host;
proxy_pass http://stormy_mw:8989/w/;
}
location /phpMyAdmin/ {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header Host $host;
proxy_pass http://stormy_myadmin:80/;
}
location ~ /\.git {
deny all;
}
}
server {
# https://git.charlesreid1.red
listen 443;
listen [::]:443;
server_name git.charlesreid1.red;
ssl on;
ssl_certificate /etc/letsencrypt/live/git.charlesreid1.red/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/git.charlesreid1.red/privkey.pem;
include /etc/letsencrypt/options-ssl-nginx.conf;
client_max_body_size 100m;
location / {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header Host $host;
proxy_pass http://stormy_gitea:3000/;
}
}
server {
# https://files.charlesreid1.red
listen 443;
listen [::]:443;
server_name files.charlesreid1.red;
ssl on;
ssl_certificate /etc/letsencrypt/live/files.charlesreid1.red/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/files.charlesreid1.red/privkey.pem;
include /etc/letsencrypt/options-ssl-nginx.conf;
client_max_body_size 100m;
location / {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header Host $host;
proxy_pass http://stormy_files:8081/;
}
}

43
conf.d/port3000.com.charlesreid1.conf

@ -0,0 +1,43 @@ @@ -0,0 +1,43 @@
####################
#
# charlesreid1.*
# http
# 3000
#
# this rule is here
# so old links to
# charlesreid1.X:3000
# won't break.
#
# http://charlesreid1.X:3000 -> https://git.charlesreid1.X
# https://charlesreid1.X:3000 -> https://git.charlesreid1.X
#
####################
server {
listen 3000;
listen [::]:3000;
server_name charlesreid1.blue;
location / {
return 301 https://git.charlesreid1.blue$request_uri;
}
}
server {
listen 3000;
listen [::]:3000;
server_name charlesreid1.red;
location / {
return 301 https://git.charlesreid1.red$request_uri;
}
}
server {
listen 3000;
listen [::]:3000;
server_name charlesreid1.com;
location / {
return 301 https://git.charlesreid1.com$request_uri;
}
}
Loading…
Cancel
Save