Skip to content

Commit 0558de6

Browse files
committed
unify configs, split your-spotify config
1 parent 45ba5a8 commit 0558de6

File tree

4 files changed

+58
-62
lines changed

4 files changed

+58
-62
lines changed

linkace.subdomain.conf.sample

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@ server {
99

1010
server_name linkace.*;
1111

12-
# enable to indicate to search engines to not index this site
13-
# add_header X-Robots-Tag "noindex, nofollow, nosnippet, noarchive";
14-
1512
include /config/nginx/ssl.conf;
1613

1714
client_max_body_size 0;

storm.subdomain.conf.sample

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@ server {
1010

1111
server_name storm.*;
1212

13-
# enable to indicate to search engines to not index this site
14-
# add_header X-Robots-Tag "noindex, nofollow, nosnippet, noarchive";
15-
1613
include /config/nginx/ssl.conf;
1714

1815
client_max_body_size 0;
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
## Version 2023/10/17
2+
# https://github.com/Yooooomi/your_spotify
3+
# this is not a standalone config, it requires configured your-spotify web container for full functionality.
4+
# it uses server URLs for api callbacks, thus a server is required
5+
# make sure that your YourSpotify api container is named your-spotify-server
6+
# make sure that your dns has a cname set for your-spotify-server
7+
# do not forget to finish configuration following instructions in apps repository. API_ENDPOINT=https://your-spotify-server.[your domain].
8+
9+
server {
10+
listen 443 ssl http2;
11+
listen [::]:443 ssl http2;
12+
13+
server_name your-spotify-server.*;
14+
15+
include /config/nginx/ssl.conf;
16+
17+
client_max_body_size 0;
18+
19+
# enable for ldap auth (requires ldap-location.conf in the location block)
20+
#include /config/nginx/ldap-server.conf;
21+
22+
# enable for Authelia (requires authelia-location.conf in the location block)
23+
#include /config/nginx/authelia-server.conf;
24+
25+
# enable for Authentik (requires authentik-location.conf in the location block)
26+
#include /config/nginx/authentik-server.conf;
27+
28+
location / {
29+
# enable the next two lines for http auth
30+
#auth_basic "Restricted";
31+
#auth_basic_user_file /config/nginx/.htpasswd;
32+
33+
# enable for ldap auth (requires ldap-server.conf in the server block)
34+
#include /config/nginx/ldap-location.conf;
35+
36+
# enable for Authelia (requires authelia-server.conf in the server block)
37+
#include /config/nginx/authelia-location.conf;
38+
39+
# enable for Authentik (requires authentik-server.conf in the server block)
40+
#include /config/nginx/authentik-location.conf;
41+
42+
include /config/nginx/proxy.conf;
43+
include /config/nginx/resolver.conf;
44+
set $upstream_app your-spotify-server;
45+
set $upstream_port 8080;
46+
set $upstream_proto http;
47+
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
48+
49+
}
50+
51+
}

your-spotify.subdomain.conf.sample

Lines changed: 7 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,16 @@
1-
## Version 2023/09/29
1+
## Version 2023/10/17
22
# https://github.com/Yooooomi/your_spotify
3-
# this app requires separate server and web containers. It uses web and server URLs for api callbacks, thus a double config is required.
4-
# make sure that your YourSpotify client container is named your-spotify-web
5-
# make sure that your YourSpotify server container is named your-spotify-server
6-
# make sure that your dns has a cname set for your-spotify and your-spotify-server
7-
# do not forget to finish configuration following instructions in apps repository. CLIENT_ENDPOINT=https://your-spotify.[your domain]; API_ENDPOINT=https://your-spotify-server.[your domain].
3+
# this is not a standalone config, it requires configured your-spotify api container for full functionality.
4+
# it uses server URLs for api callbacks, thus a server is required
5+
# make sure that your YourSpotify web container is named your-spotify-web
6+
# make sure that your dns has a cname set for your-spotify
7+
# do not forget to finish configuration following instructions in apps repository. CLIENT_ENDPOINT=https://your-spotify.[your domain]
88

99
server {
1010
listen 443 ssl http2;
1111
listen [::]:443 ssl http2;
1212

13-
server_name your-spotify.*;
14-
15-
# enable to indicate to search engines to not index this site
16-
#add_header X-Robots-Tag "noindex, nofollow, nosnippet, noarchive";
13+
server_name your-spotify.*;
1714

1815
include /config/nginx/ssl.conf;
1916

@@ -54,49 +51,3 @@ server {
5451
}
5552

5653

57-
server {
58-
listen 443 ssl http2;
59-
listen [::]:443 ssl http2;
60-
61-
server_name your-spotify-server.*;
62-
63-
# enable to indicate to search engines to not index this site
64-
#add_header X-Robots-Tag "noindex, nofollow, nosnippet, noarchive";
65-
66-
include /config/nginx/ssl.conf;
67-
68-
client_max_body_size 0;
69-
70-
# enable for ldap auth (requires ldap-location.conf in the location block)
71-
#include /config/nginx/ldap-server.conf;
72-
73-
# enable for Authelia (requires authelia-location.conf in the location block)
74-
#include /config/nginx/authelia-server.conf;
75-
76-
# enable for Authentik (requires authentik-location.conf in the location block)
77-
#include /config/nginx/authentik-server.conf;
78-
79-
location / {
80-
# enable the next two lines for http auth
81-
#auth_basic "Restricted";
82-
#auth_basic_user_file /config/nginx/.htpasswd;
83-
84-
# enable for ldap auth (requires ldap-server.conf in the server block)
85-
#include /config/nginx/ldap-location.conf;
86-
87-
# enable for Authelia (requires authelia-server.conf in the server block)
88-
#include /config/nginx/authelia-location.conf;
89-
90-
# enable for Authentik (requires authentik-server.conf in the server block)
91-
#include /config/nginx/authentik-location.conf;
92-
93-
include /config/nginx/proxy.conf;
94-
include /config/nginx/resolver.conf;
95-
set $upstream_app your-spotify-server;
96-
set $upstream_port 8080;
97-
set $upstream_proto http;
98-
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
99-
100-
}
101-
102-
}

0 commit comments

Comments
 (0)