2023-11-03 11:42:25 +00:00
|
|
|
# Satstralia Mainnet Locations
|
|
|
|
location /mainnet/satstralia/static/assets/avatars/ {
|
|
|
|
proxy_pass http://mainnet_satstralia/static/assets/avatars/;
|
|
|
|
}
|
|
|
|
|
|
|
|
location /mainnet/satstralia/api/ {
|
|
|
|
# if ($request_method = 'OPTIONS') {
|
|
|
|
# add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
|
|
|
|
# add_header 'Access-Control-Allow-Headers' 'DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range';
|
|
|
|
# add_header 'Access-Control-Max-Age' 1728000;
|
|
|
|
# add_header 'Content-Type' 'text/plain; charset=utf-8';
|
|
|
|
# add_header 'Content-Length' 0;
|
|
|
|
# return 204;
|
|
|
|
# }
|
|
|
|
# if ($request_method = 'POST') {
|
|
|
|
# add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
|
|
|
|
# add_header 'Access-Control-Allow-Headers' 'DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range';
|
|
|
|
# add_header 'Access-Control-Expose-Headers' 'Content-Length,Content-Range';
|
|
|
|
# }
|
|
|
|
# if ($request_method = 'GET') {
|
|
|
|
# add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
|
|
|
|
# add_header 'Access-Control-Allow-Headers' 'DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range';
|
|
|
|
# add_header 'Access-Control-Expose-Headers' 'Content-Length,Content-Range';
|
|
|
|
# }
|
|
|
|
proxy_pass http://mainnet_satstralia/api/;
|
|
|
|
proxy_http_version 1.1;
|
|
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
|
|
proxy_set_header Connection "Upgrade";
|
|
|
|
proxy_set_header Host $host;
|
|
|
|
}
|
|
|
|
|
|
|
|
location /mainnet/satstralia/ws/ {
|
|
|
|
proxy_pass http://mainnet_satstralia/ws/;
|
|
|
|
proxy_http_version 1.1;
|
|
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
|
|
proxy_set_header Connection "Upgrade";
|
|
|
|
proxy_set_header Host $host;
|
|
|
|
}
|
|
|
|
|
2024-07-15 14:36:30 +00:00
|
|
|
location /mainnet/satstralia/nostr/ {
|
|
|
|
proxy_pass http://mainnet_satstralia/nostr/;
|
|
|
|
proxy_http_version 1.1;
|
|
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
|
|
proxy_set_header Connection "Upgrade";
|
|
|
|
proxy_set_header Host $host;
|
|
|
|
}
|
|
|
|
|
2023-11-03 11:42:25 +00:00
|
|
|
# Satstralia Coordinator Testnet Locations
|
|
|
|
location /test/satstralia/static/assets/avatars/ {
|
|
|
|
proxy_pass http://testnet_satstralia/static/assets/avatars/;
|
|
|
|
}
|
|
|
|
|
|
|
|
location /testnet/satstralia/api/ {
|
|
|
|
proxy_pass http://testnet_satstralia/api/;
|
|
|
|
proxy_http_version 1.1;
|
|
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
|
|
proxy_set_header Connection "Upgrade";
|
|
|
|
proxy_set_header Host $host;
|
|
|
|
}
|
|
|
|
|
|
|
|
location /testnet/satstralia/ws/ {
|
|
|
|
proxy_pass http://testnet_satstralia/ws/;
|
|
|
|
proxy_http_version 1.1;
|
|
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
|
|
proxy_set_header Connection "Upgrade";
|
|
|
|
proxy_set_header Host $host;
|
|
|
|
}
|