mirror of
https://github.com/RustyRaptor/schej.it.git
synced 2026-12-03 15:55:18 -07:00
backup nginx configs
This commit is contained in:
1 parent
0eae9746ff
commit
19e5ebb835
5 files changed
+194
No files matched your search
@@ -0,0 +1,47 @@
|
||||
server {
|
||||
server_name assignhub.app;
|
||||
|
||||
#frontend
|
||||
location / {
|
||||
root /assignhub/frontend/dist;
|
||||
try_files $uri $uri/ /index.html;
|
||||
}
|
||||
|
||||
location /api/ {
|
||||
proxy_pass http://localhost:3000/;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection 'upgrade';
|
||||
proxy_set_header Host $host;
|
||||
proxy_cache_bypass $http_upgrade;
|
||||
}
|
||||
|
||||
location /sockets/ {
|
||||
proxy_pass http://localhost:3000;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection 'upgrade';
|
||||
proxy_set_header Host $host;
|
||||
proxy_cache_bypass $http_upgrade;
|
||||
}
|
||||
|
||||
listen 443 ssl; # managed by Certbot
|
||||
ssl_certificate /etc/letsencrypt/live/assignhub.app/fullchain.pem; # managed by Certbot
|
||||
ssl_certificate_key /etc/letsencrypt/live/assignhub.app/privkey.pem; # managed by Certbot
|
||||
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
|
||||
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
|
||||
|
||||
}
|
||||
|
||||
server {
|
||||
if ($host = assignhub.app) {
|
||||
return 301 https://$host$request_uri;
|
||||
} # managed by Certbot
|
||||
|
||||
|
||||
server_name assignhub.app;
|
||||
listen 80;
|
||||
return 404; # managed by Certbot
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
server {
|
||||
server_name e.schej.it;
|
||||
|
||||
# reverse proxy requests to posthog
|
||||
location / {
|
||||
proxy_pass https://app.posthog.com;
|
||||
proxy_redirect off;
|
||||
proxy_ssl_session_reuse off;
|
||||
proxy_ssl_server_name on;
|
||||
proxy_set_header Host app.posthog.com;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
}
|
||||
|
||||
listen 443 ssl; # managed by Certbot
|
||||
ssl_certificate /etc/letsencrypt/live/e.schej.it/fullchain.pem; # managed by Certbot
|
||||
ssl_certificate_key /etc/letsencrypt/live/e.schej.it/privkey.pem; # managed by Certbot
|
||||
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
|
||||
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
|
||||
|
||||
}
|
||||
server {
|
||||
if ($host = e.schej.it) {
|
||||
return 301 https://$host$request_uri;
|
||||
} # managed by Certbot
|
||||
|
||||
|
||||
listen 80;
|
||||
server_name e.schej.it;
|
||||
return 404; # managed by Certbot
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
server {
|
||||
server_name dev.rapfeud.com;
|
||||
listen 80;
|
||||
|
||||
location /_next/ {
|
||||
alias /rapfued/.next/;
|
||||
}
|
||||
|
||||
location / {
|
||||
# reverse proxy for next server
|
||||
proxy_pass http://localhost:3000;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection 'upgrade';
|
||||
proxy_set_header Host $host;
|
||||
proxy_cache_bypass $http_upgrade;
|
||||
|
||||
# we need to remove this 404 handling
|
||||
# because next's _next folder and own handling
|
||||
# try_files $uri $uri/ =404;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,55 @@
|
||||
server {
|
||||
server_name schej.it; # managed by Certbot
|
||||
|
||||
#frontend
|
||||
location / {
|
||||
if (-f /schej.it/maintenance_page/maintenance_true.html) {
|
||||
return 503;
|
||||
}
|
||||
proxy_pass http://localhost:3002/;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection 'upgrade';
|
||||
proxy_set_header Host $host;
|
||||
proxy_cache_bypass $http_upgrade;
|
||||
}
|
||||
|
||||
location /sockets/ {
|
||||
proxy_pass http://localhost:3002;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection 'upgrade';
|
||||
proxy_set_header Host $host;
|
||||
proxy_cache_bypass $http_upgrade;
|
||||
}
|
||||
|
||||
error_page 503 /maintenance_true.html;
|
||||
location = /maintenance_true.html {
|
||||
root /schej.it/maintenance_page;
|
||||
internal;
|
||||
}
|
||||
|
||||
location /maintenance_images {
|
||||
alias /schej.it/maintenance_page/maintenance_images;
|
||||
}
|
||||
|
||||
|
||||
listen 443 ssl; # managed by Certbot
|
||||
ssl_certificate /etc/letsencrypt/live/schej.it/fullchain.pem; # managed by Certbot
|
||||
ssl_certificate_key /etc/letsencrypt/live/schej.it/privkey.pem; # managed by Certbot
|
||||
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
|
||||
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
|
||||
|
||||
}
|
||||
server {
|
||||
if ($host = schej.it) {
|
||||
return 301 https://$host$request_uri;
|
||||
} # managed by Certbot
|
||||
|
||||
|
||||
server_name schej.it;
|
||||
listen 80;
|
||||
return 404; # managed by Certbot
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
server {
|
||||
listen 80;
|
||||
server_name 3.18.115.80;
|
||||
|
||||
#frontend
|
||||
location / {
|
||||
if (-f /schej.it/maintenance_page/maintenance_true.html) {
|
||||
return 503;
|
||||
}
|
||||
proxy_pass http://localhost:3002/;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection 'upgrade';
|
||||
proxy_set_header Host $host;
|
||||
proxy_cache_bypass $http_upgrade;
|
||||
}
|
||||
|
||||
location /sockets/ {
|
||||
proxy_pass http://localhost:3002;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection 'upgrade';
|
||||
proxy_set_header Host $host;
|
||||
proxy_cache_bypass $http_upgrade;
|
||||
}
|
||||
|
||||
error_page 503 /maintenance_true.html;
|
||||
location = /maintenance_true.html {
|
||||
root /schej.it/maintenance_page;
|
||||
internal;
|
||||
}
|
||||
|
||||
location /maintenance_images {
|
||||
alias /schej.it/maintenance_page/maintenance_images;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user