Skip to content

Commit 4a6acdc

Browse files
committed
Create your-spotify.subdomain.conf.sample
1 parent 2d577f0 commit 4a6acdc

1 file changed

Lines changed: 102 additions & 0 deletions

File tree

your-spotify.subdomain.conf.sample

Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
## Version 2023/09/29
2+
# 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].
8+
9+
server {
10+
listen 443 ssl http2;
11+
listen [::]:443 ssl http2;
12+
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";
17+
18+
include /config/nginx/ssl.conf;
19+
20+
client_max_body_size 0;
21+
22+
# enable for ldap auth (requires ldap-location.conf in the location block)
23+
#include /config/nginx/ldap-server.conf;
24+
25+
# enable for Authelia (requires authelia-location.conf in the location block)
26+
#include /config/nginx/authelia-server.conf;
27+
28+
# enable for Authentik (requires authentik-location.conf in the location block)
29+
#include /config/nginx/authentik-server.conf;
30+
31+
location / {
32+
# enable the next two lines for http auth
33+
#auth_basic "Restricted";
34+
#auth_basic_user_file /config/nginx/.htpasswd;
35+
36+
# enable for ldap auth (requires ldap-server.conf in the server block)
37+
#include /config/nginx/ldap-location.conf;
38+
39+
# enable for Authelia (requires authelia-server.conf in the server block)
40+
#include /config/nginx/authelia-location.conf;
41+
42+
# enable for Authentik (requires authentik-server.conf in the server block)
43+
#include /config/nginx/authentik-location.conf;
44+
45+
include /config/nginx/proxy.conf;
46+
include /config/nginx/resolver.conf;
47+
set $upstream_app your-spotify-web;
48+
set $upstream_port 3000;
49+
set $upstream_proto http;
50+
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
51+
52+
}
53+
54+
}
55+
56+
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)