Browse Source

forget toots, forget mastodon, forget everything

master
Charles Reid 7 years ago
parent
commit
4acd5ed952
  1. 9
      conf.d/http.blue.charlesreid1.conf
  2. 9
      conf.d/http.com.charlesreid1.conf
  3. 9
      conf.d/http.red.charlesreid1.conf
  4. 93
      conf.d/https.blue.charlesreid1.subdomains.conf
  5. 84
      conf.d/https.com.charlesreid1.subdomains.conf
  6. 83
      conf.d/https.red.charlesreid1.subdomains.conf

9
conf.d/http.blue.charlesreid1.conf

@ -44,12 +44,3 @@ server { @@ -44,12 +44,3 @@ server {
}
}
server {
listen 80;
listen [::]:80;
server_name toots.charlesreid1.blue;
location / {
return 301 https://toots.charlesreid1.blue$request_uri;
}
}

9
conf.d/http.com.charlesreid1.conf

@ -74,12 +74,3 @@ server { @@ -74,12 +74,3 @@ server {
}
}
server {
listen 80;
listen [::]:80;
server_name toots.charlesreid1.blue;
location / {
return 301 https://toots.charlesreid1.blue$request_uri;
}
}

9
conf.d/http.red.charlesreid1.conf

@ -44,12 +44,3 @@ server { @@ -44,12 +44,3 @@ server {
}
}
server {
listen 80;
listen [::]:80;
server_name toots.charlesreid1.blue;
location / {
return 301 https://toots.charlesreid1.blue$request_uri;
}
}

93
conf.d/https.blue.charlesreid1.subdomains.conf

@ -13,6 +13,7 @@ @@ -13,6 +13,7 @@
####################
server {
# https://pages.charlesreid1.com
listen 443;
listen [::]:443;
server_name pages.charlesreid1.blue;
@ -34,6 +35,7 @@ server { @@ -34,6 +35,7 @@ server {
}
server {
# https://hooks.charlesreid1.com
listen 443;
listen [::]:443;
server_name hooks.charlesreid1.blue;
@ -54,104 +56,25 @@ server { @@ -54,104 +56,25 @@ server {
}
server {
# https://bots.charlesreid1.blue
# https://bots.charlesreid1.com
listen 443;
listen [::]:443;
server_name bots.charlesreid1.blue;
server_name bots.charlesreid1.com;
ssl on;
ssl_certificate /etc/letsencrypt/live/bots.charlesreid1.blue/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/bots.charlesreid1.blue/privkey.pem;
ssl_certificate /etc/letsencrypt/live/bots.charlesreid1.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/bots.charlesreid1.com/privkey.pem;
include /etc/letsencrypt/options-ssl-nginx.conf;
client_max_body_size 100m;
port_in_redirect off;
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://206.189.212.168:7779;
proxy_redirect http://206.189.212.168:7779/ http://bots.charlesreid1.com/;
}
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name toots.charlesreid1.com;
ssl_protocols TLSv1.2;
ssl_ciphers HIGH:!MEDIUM:!LOW:!aNULL:!NULL:!SHA;
ssl_prefer_server_ciphers on;
ssl_session_cache shared:SSL:10m;
ssl_certificate /etc/letsencrypt/live/toots.charlesreid1.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/toots.charlesreid1.com/privkey.pem;
keepalive_timeout 70;
sendfile on;
client_max_body_size 80m;
root /home/mastodon/live/public;
gzip on;
gzip_disable "msie6";
gzip_vary on;
gzip_proxied any;
gzip_comp_level 6;
gzip_buffers 16 8k;
gzip_http_version 1.1;
gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;
add_header Strict-Transport-Security "max-age=31536000";
location / {
try_files $uri @proxy;
}
location ~ ^/(emoji|packs|system/accounts/avatars|system/media_attachments/files) {
add_header Cache-Control "public, max-age=31536000, immutable";
try_files $uri @proxy;
}
location /sw.js {
add_header Cache-Control "public, max-age=0";
try_files $uri @proxy;
}
location @proxy {
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 https;
proxy_set_header Proxy "";
proxy_pass_header Server;
proxy_pass http://206.189.212.168:7776;
proxy_buffering off;
proxy_redirect off;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
tcp_nodelay on;
}
location /api/v1/streaming {
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 https;
proxy_set_header Proxy "";
proxy_pass http://206.189.212.168:7775;
proxy_buffering off;
proxy_redirect off;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
tcp_nodelay on;
}
error_page 500 501 502 503 504 /500.html;
}

84
conf.d/https.com.charlesreid1.subdomains.conf

@ -12,6 +12,7 @@ @@ -12,6 +12,7 @@
####################
server {
# https://pages.charlesreid1.com
listen 443;
listen [::]:443;
server_name pages.charlesreid1.com;
@ -35,6 +36,7 @@ server { @@ -35,6 +36,7 @@ server {
}
server {
# https://hooks.charlesreid1.com
listen 443;
listen [::]:443;
server_name hooks.charlesreid1.com;
@ -97,85 +99,3 @@ server { @@ -97,85 +99,3 @@ server {
}
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name toots.charlesreid1.com;
ssl_protocols TLSv1.2;
ssl_ciphers HIGH:!MEDIUM:!LOW:!aNULL:!NULL:!SHA;
ssl_prefer_server_ciphers on;
ssl_session_cache shared:SSL:10m;
ssl_certificate /etc/letsencrypt/live/toots.charlesreid1.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/toots.charlesreid1.com/privkey.pem;
keepalive_timeout 70;
sendfile on;
client_max_body_size 80m;
root /home/mastodon/live/public;
gzip on;
gzip_disable "msie6";
gzip_vary on;
gzip_proxied any;
gzip_comp_level 6;
gzip_buffers 16 8k;
gzip_http_version 1.1;
gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;
add_header Strict-Transport-Security "max-age=31536000";
location / {
try_files $uri @proxy;
}
location ~ ^/(emoji|packs|system/accounts/avatars|system/media_attachments/files) {
add_header Cache-Control "public, max-age=31536000, immutable";
try_files $uri @proxy;
}
location /sw.js {
add_header Cache-Control "public, max-age=0";
try_files $uri @proxy;
}
location @proxy {
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 https;
proxy_set_header Proxy "";
proxy_pass_header Server;
proxy_pass http://206.189.212.168:7776;
proxy_buffering off;
proxy_redirect off;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
tcp_nodelay on;
}
location /api/v1/streaming {
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 https;
proxy_set_header Proxy "";
proxy_pass http://206.189.212.168:7775;
proxy_buffering off;
proxy_redirect off;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
tcp_nodelay on;
}
error_page 500 501 502 503 504 /500.html;
}

83
conf.d/https.red.charlesreid1.subdomains.conf

@ -12,6 +12,7 @@ @@ -12,6 +12,7 @@
####################
server {
# https://pages.charlesreid1.com
listen 443;
listen [::]:443;
server_name pages.charlesreid1.red;
@ -33,6 +34,7 @@ server { @@ -33,6 +34,7 @@ server {
}
server {
# https://hooks.charlesreid1.com
listen 443;
listen [::]:443;
server_name hooks.charlesreid1.red;
@ -73,84 +75,3 @@ server { @@ -73,84 +75,3 @@ server {
}
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name toots.charlesreid1.com;
ssl_protocols TLSv1.2;
ssl_ciphers HIGH:!MEDIUM:!LOW:!aNULL:!NULL:!SHA;
ssl_prefer_server_ciphers on;
ssl_session_cache shared:SSL:10m;
ssl_certificate /etc/letsencrypt/live/toots.charlesreid1.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/toots.charlesreid1.com/privkey.pem;
keepalive_timeout 70;
sendfile on;
client_max_body_size 80m;
root /home/mastodon/live/public;
gzip on;
gzip_disable "msie6";
gzip_vary on;
gzip_proxied any;
gzip_comp_level 6;
gzip_buffers 16 8k;
gzip_http_version 1.1;
gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;
add_header Strict-Transport-Security "max-age=31536000";
location / {
try_files $uri @proxy;
}
location ~ ^/(emoji|packs|system/accounts/avatars|system/media_attachments/files) {
add_header Cache-Control "public, max-age=31536000, immutable";
try_files $uri @proxy;
}
location /sw.js {
add_header Cache-Control "public, max-age=0";
try_files $uri @proxy;
}
location @proxy {
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 https;
proxy_set_header Proxy "";
proxy_pass_header Server;
proxy_pass http://206.189.212.168:7776;
proxy_buffering off;
proxy_redirect off;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
tcp_nodelay on;
}
location /api/v1/streaming {
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 https;
proxy_set_header Proxy "";
proxy_pass http://206.189.212.168:7775;
proxy_buffering off;
proxy_redirect off;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
tcp_nodelay on;
}
error_page 500 501 502 503 504 /500.html;
}

Loading…
Cancel
Save