robosats/nodeapp/coordinators/moon/locations.conf
KoalaSat b0e3991e68
Add over the moon coordinator (#1591)
* Add over the moon coordinator

* Add Over the Moon to self-hosted backend

* Add over the moon avatar

---------

Co-authored-by: Reckless_Satoshi <reckless.satoshi@protonmail.com>
2024-11-02 20:01:23 +00:00

67 lines
2.5 KiB
Plaintext

# Over the Moon Mainnet Locations
location /mainnet/moon/static/assets/avatars/ {
proxy_pass http://mainnet_moon/static/assets/avatars/;
}
location /mainnet/moon/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_moon/api/;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_set_header Host $host;
}
location /mainnet/moon/ws/ {
proxy_pass http://mainnet_moon/ws/;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_set_header Host $host;
}
location /mainnet/moon/nostr/ {
proxy_pass http://mainnet_moon/nostr/;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_set_header Host $host;
}
# Over the Moon Coordinator Testnet Locations
location /test/moon/static/assets/avatars/ {
proxy_pass http://testnet_moon/static/assets/avatars/;
}
location /testnet/moon/api/ {
proxy_pass http://testnet_moon/api/;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_set_header Host $host;
}
location /testnet/moon/ws/ {
proxy_pass http://testnet_moon/ws/;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_set_header Host $host;
}