personal-servers/reverse_proxy/nginx.conf

187 lines
4.3 KiB
Nginx Configuration File
Raw Normal View History

map $upstream_http_access_control_allow_origin $allow_origin {
'' "*";
}
2022-05-03 16:10:33 +00:00
server {
listen 8080;
listen [::]:8080;
server_name faaso-prod.ralsina.me;
add_header 'Access-Control-Allow-Origin' $allow_origin;
add_header 'Access-Control-Allow-Headers' '*';
add_header 'Access-Control-Allow-Credentials' 'true';
add_header 'Allow' 'POST, GET, OPTIONS';
if ($request_method = 'OPTIONS' ) {
return 200;
}
location / {
proxy_pass http://rocky.tail20c16.ts.net:8888;
proxy_set_header X-Forwarded-Host $http_host;
}
2024-07-21 00:10:05 +00:00
}
2024-07-21 00:10:05 +00:00
server {
listen 8080;
listen [::]:8080;
server_name code.ralsina.me;
location / {
proxy_pass http://mindy.tail20c16.ts.net:8088;
proxy_set_header X-Forwarded-Host $http_host;
proxy_set_header Host $host;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection upgrade;
proxy_set_header Accept-Encoding gzip;
}
error_page 500 502 503 504 /custom_50x.html;
location = /custom_50x.html {
root /usr/share/nginx/html;
internal;
}
2024-07-17 15:27:34 +00:00
}
server {
listen 8080;
listen [::]:8080;
server_name home.ralsina.me;
server_name ralsina.me;
server_name faaso.ralsina.me;
server_name nicolino.ralsina.me;
server_name crycco.ralsina.me;
server_name nombres.ralsina.me;
location / {
proxy_pass http://pinky.tail20c16.ts.net:8080;
proxy_set_header X-Forwarded-Host $http_host;
proxy_set_header Host $host;
}
error_page 500 502 503 504 /custom_50x.html;
location = /custom_50x.html {
root /usr/share/nginx/html;
internal;
}
2024-07-11 20:09:30 +00:00
}
2024-06-26 14:05:15 +00:00
server {
listen 8080;
listen [::]:8080;
server_name links.ralsina.me;
location / {
proxy_pass http://pinky.tail20c16.ts.net:8086;
proxy_set_header X-Forwarded-Host $http_host;
proxy_set_header Host $host;
}
error_page 500 502 503 504 /custom_50x.html;
location = /custom_50x.html {
root /usr/share/nginx/html;
internal;
}
2024-06-26 14:05:15 +00:00
}
2022-05-03 16:10:33 +00:00
server {
listen 8080;
listen [::]:8080;
server_name git.ralsina.me;
location / {
proxy_pass http://pinky.tail20c16.ts.net:3000;
proxy_set_header X-Forwarded-Host $http_host;
proxy_set_header Host $host;
}
error_page 403 404 500 502 503 504 /custom_50x.html;
location = /custom_50x.html {
root /usr/share/nginx/html;
internal;
}
2022-05-03 16:10:33 +00:00
}
2022-06-29 00:08:00 +00:00
2024-04-30 16:17:10 +00:00
server {
listen 8080;
listen [::]:8080;
server_name gotify.ralsina.me;
add_header 'Access-Control-Allow-Origin' '*';
add_header 'Access-Control-Allow-Headers' '*';
add_header 'Access-Control-Allow-Credentials' 'true';
add_header 'Allow' 'POST, GET, OPTIONS';
if ($request_method = 'OPTIONS' ) {
return 200;
}
location / {
proxy_pass http://pinky.tail20c16.ts.net:7777;
proxy_set_header X-Forwarded-Host $http_host;
proxy_set_header Host $host;
}
location /stream {
proxy_pass http://pinky.tail20c16.ts.net:7777;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
}
error_page 403 404 500 502 503 504 /custom_50x.html;
location = /custom_50x.html {
root /usr/share/nginx/html;
internal;
}
2024-04-30 16:17:10 +00:00
}
2022-07-16 17:28:47 +00:00
server {
listen 8080;
listen [::]:8080;
server_name faas.ralsina.me;
add_header 'Access-Control-Allow-Origin' '*';
add_header 'Access-Control-Allow-Headers' '*';
add_header 'Access-Control-Allow-Credentials' 'true';
add_header 'Allow' 'POST, GET, OPTIONS';
if ($request_method = 'OPTIONS' ) {
return 200;
}
location / {
proxy_pass http://pinky.tail20c16.ts.net:8082;
proxy_set_header X-Forwarded-Host $http_host;
}
2022-07-16 17:28:47 +00:00
}
2023-05-16 15:40:14 +00:00
server {
listen 8080;
listen [::]:8080;
2023-05-16 15:40:14 +00:00
server_name snips.ralsina.me;
2023-05-16 15:40:14 +00:00
location / {
proxy_pass http://pinky.tail20c16.ts.net:8091 ;
proxy_set_header X-Forwarded-Host $http_host;
2023-05-16 15:40:14 +00:00
# WebSocket support
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
2023-05-16 15:40:14 +00:00
}
2023-05-16 15:53:36 +00:00
server {
listen 8080;
listen [::]:8080;
2023-05-16 15:53:36 +00:00
server_name covers.ralsina.me;
return 301 https://ralsina.me/stories/covers/;
2023-05-16 15:53:36 +00:00
}