]> git.immae.eu Git - perso/Immae/Config/Nix.git/blobdiff - nixops/modules/websites/tools/tools/ympd.nix
Use sockets instead of ports in mpd
[perso/Immae/Config/Nix.git] / nixops / modules / websites / tools / tools / ympd.nix
index 82d9321d1d77b53454ed17181f9a5eb668d80680..b54c48665d893638cd160cd330078ea973d324f5 100644 (file)
@@ -26,12 +26,12 @@ let
           ProxyPass ws://${config.webPort}/ws
         </Location>
         <Location "/mpd/music.mp3">
-          ProxyPass http://localhost:${env.mp3port}/
-          ProxyPassReverse http://localhost:${env.mp3port}/
+          ProxyPass unix:///run/mpd/mp3.sock|http://tools.immae.eu/
+          ProxyPassReverse unix:///run/mpd/mp3.sock|http://tools.immae.eu/
         </Location>
         <Location "/mpd/music.ogg">
-          ProxyPass http://localhost:${env.oggport}/
-          ProxyPassReverse http://localhost:${env.oggport}/
+          ProxyPass unix:///run/mpd/ogg.sock|http://tools.immae.eu/
+          ProxyPassReverse unix:///run/mpd/ogg.sock|http://tools.immae.eu/
         </Location>
       '';
     };