Skip to content

Commit ebccd91

Browse files
committed
configure music sharing
1 parent a6bbb1a commit ebccd91

File tree

1 file changed

+14
-10
lines changed

1 file changed

+14
-10
lines changed

desktop/configuration/services.nix

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -87,12 +87,14 @@
8787
environmentFile = config.age.secrets.navidrome-lastfm.path;
8888
settings = {
8989
MusicFolder = "/home/codebam/Downloads/Lidarr";
90+
BaseUrl = "https://codebam.tplinkdns.com";
9091
Address = "0.0.0.0";
9192
Port = 4533;
9293
ScanSchedule = "@every 1h";
9394
DefaultLanguage = "en";
9495
EnableExternalServices = true;
9596
LastFM.Enabled = false;
97+
EnableSharing = true;
9698
};
9799
openFirewall = true;
98100
};
@@ -134,7 +136,7 @@
134136
};
135137
};
136138
v2ray = {
137-
enable = true;
139+
enable = false;
138140
config = {
139141
inbounds = [{
140142
port = 10086;
@@ -152,16 +154,18 @@
152154
};
153155
nginx = {
154156
enable = true;
157+
recommendedProxySettings = true;
158+
recommendedTlsSettings = true;
155159
virtualHosts."codebam.tplinkdns.com" = {
156-
listen = [{
157-
addr = "127.0.0.1";
158-
port = 8080;
159-
proxyProtocol = true;
160-
}];
161-
root = "/var/www/xray-site";
162-
extraConfig = ''
163-
index index.html;
164-
'';
160+
addSSL = true;
161+
enableACME = true;
162+
locations."/" = {
163+
proxyPass = "http://127.0.0.1:4533";
164+
proxyWebsockets = true;
165+
extraConfig = ''
166+
proxy_set_header X-Forwarded-Protocol $scheme;
167+
'';
168+
};
165169
};
166170
};
167171
xray = {

0 commit comments

Comments
 (0)