mirror of https://github.com/YGGverse/YGGbro.git
ghost
12 months ago
4 changed files with 105 additions and 43 deletions
@ -1,43 +0,0 @@
@@ -1,43 +0,0 @@
|
||||
# Stream mirrors for https://somafm.com/ |
||||
|
||||
server { |
||||
|
||||
# HTTP/IPv6 connections only |
||||
# listen [::]:80 ipv6only=on; |
||||
|
||||
# Yggdrasil connections only |
||||
# allow 0200::/7; |
||||
# deny all; |
||||
|
||||
# Tell to server, that's proxy request |
||||
# proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; |
||||
# proxy_set_header X-Real-IP $remote_addr; |
||||
|
||||
location /soma.fm/suburbsofgoa/128/mp3 { |
||||
proxy_pass http://ice6.somafm.com/suburbsofgoa-128-mp3; |
||||
} |
||||
|
||||
location /soma.fm/thetrip/128/mp3 { |
||||
proxy_pass http://ice5.somafm.com/thetrip-128-mp3; |
||||
} |
||||
|
||||
location /soma.fm/thistle/128/mp3 { |
||||
proxy_pass http://ice4.somafm.com/thistle-128-mp3; |
||||
} |
||||
|
||||
location /soma.fm/cliqhop/128/mp3 { |
||||
proxy_pass http://ice6.somafm.com/cliqhop-128-mp3; |
||||
} |
||||
|
||||
location /soma.fm/lush/128/mp3 { |
||||
proxy_pass http://ice6.somafm.com/lush-128-mp3; |
||||
} |
||||
|
||||
location /soma.fm/deepspaceone/128/mp3 { |
||||
proxy_pass http://ice6.somafm.com/deepspaceone-128-mp3; |
||||
} |
||||
|
||||
location /soma.fm/sonicuniverse/128/mp3 { |
||||
proxy_pass http://ice6.somafm.com/sonicuniverse-128-mp3; |
||||
} |
||||
} |
@ -0,0 +1,35 @@
@@ -0,0 +1,35 @@
|
||||
# Nginx proxy configuration for /yggwave/somafm.com subfolder location |
||||
|
||||
## Install |
||||
|
||||
This is subfolder configuration, use `server.conf` preset only when `default_server` not defined in your system: |
||||
|
||||
* `ln -s /etc/yggbro/nginx/somafm.com/yggwave/somafm.com/server.conf /etc/nginx/sites-enabled/yggbro.somafm.com.yggwave.somafm.com.conf` |
||||
|
||||
Alternatively, add following line to existing `default_server`: |
||||
|
||||
``` |
||||
include /etc/yggbro/nginx/somafm.com/yggwave/somafm.com/location.conf; |
||||
``` |
||||
|
||||
Test configuration and apply changes |
||||
|
||||
* `nginx -t` |
||||
* `service nginx reload` |
||||
|
||||
## Uninstall |
||||
|
||||
Remove symlink if exists: |
||||
|
||||
* `rm /etc/nginx/sites-enabled/yggbro.somafm.com.yggwave.somafm.com.conf` |
||||
|
||||
Remove following line from existing `default_server`: |
||||
|
||||
``` |
||||
include /etc/yggbro/nginx/somafm.com/yggwave/somafm.com/location.conf; |
||||
``` |
||||
|
||||
Test configuration and apply changes |
||||
|
||||
* `nginx -t` |
||||
* `service nginx reload` |
@ -0,0 +1,55 @@
@@ -0,0 +1,55 @@
|
||||
location /yggwave/somafm.com/suburbsofgoa/128/mp3 { |
||||
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; |
||||
proxy_set_header X-Real-IP $remote_addr; |
||||
|
||||
proxy_pass http://ice6.somafm.com/suburbsofgoa-128-mp3; |
||||
} |
||||
|
||||
location /yggwave/somafm.com/thetrip/128/mp3 { |
||||
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; |
||||
proxy_set_header X-Real-IP $remote_addr; |
||||
|
||||
proxy_pass http://ice5.somafm.com/thetrip-128-mp3; |
||||
} |
||||
|
||||
location /yggwave/somafm.com/thistle/128/mp3 { |
||||
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; |
||||
proxy_set_header X-Real-IP $remote_addr; |
||||
|
||||
proxy_pass http://ice4.somafm.com/thistle-128-mp3; |
||||
} |
||||
|
||||
location /yggwave/somafm.com/cliqhop/128/mp3 { |
||||
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; |
||||
proxy_set_header X-Real-IP $remote_addr; |
||||
|
||||
proxy_pass http://ice6.somafm.com/cliqhop-128-mp3; |
||||
} |
||||
|
||||
location /yggwave/somafm.com/lush/128/mp3 { |
||||
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; |
||||
proxy_set_header X-Real-IP $remote_addr; |
||||
|
||||
proxy_pass http://ice6.somafm.com/lush-128-mp3; |
||||
} |
||||
|
||||
location /yggwave/somafm.com/deepspaceone/128/mp3 { |
||||
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; |
||||
proxy_set_header X-Real-IP $remote_addr; |
||||
|
||||
proxy_pass http://ice6.somafm.com/deepspaceone-128-mp3; |
||||
} |
||||
|
||||
location /yggwave/somafm.com/sonicuniverse/128/mp3 { |
||||
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; |
||||
proxy_set_header X-Real-IP $remote_addr; |
||||
|
||||
proxy_pass http://ice6.somafm.com/sonicuniverse-128-mp3; |
||||
} |
@ -0,0 +1,15 @@
@@ -0,0 +1,15 @@
|
||||
server { |
||||
|
||||
# HTTP/IPv6 connections only |
||||
listen [::]:80 default_server; # make sure default_server not exists or throw an exception |
||||
|
||||
# Yggdrasil connections only |
||||
allow 0200::/7; |
||||
deny all; |
||||
|
||||
# Listen defaults |
||||
server_name _; |
||||
|
||||
# Include available locations |
||||
include /etc/yggbro/nginx/somafm.com/yggwave/somafm.com/location.conf; |
||||
} |
Loading…
Reference in new issue