pipebert: fix websites

This commit is contained in:
Sandro - 2023-05-15 00:00:13 +02:00
parent cf47bf50f7
commit 38d9b8f827
Signed by: sandro
GPG Key ID: 3AF5A43A3EECC2E5
1 changed files with 31 additions and 24 deletions

View File

@ -97,33 +97,40 @@
forceSSL = true;
locations."/".return = "307 https://drkkr.hq.c3d2.de/";
};
"ledfx.hq.c3d2.de" = {
enableACME = true;
forceSSL = true;
locations."/" = {
proxyPass = "http://127.0.0.1:8888/";
proxyWebsockets = true;
};
};
"mopidy.hq.c3d2.de" = {
enableACME = true;
forceSSL = true;
locations."/" = {
proxyPass = "http://127.0.0.1:6680";
proxyWebsockets = true;
};
};
"pipebert.hq.c3d2.de" = {
enableACME = true;
forceSSL = true;
locations = {
"/" = {
extraConfig = ''
add_header Content-Type text/html;
'';
return = ''200 '<!DOCTYPE html>
<html>
<body>
<ul>
<li><a href="/ledfx">LEDfx</li></a>
<li><a href="/mopidy/muse">Mopidy</li></a>
<li><a href="/mopidy/youtube">Mopidy - Add YouTube link</li></a>
</ul>
</body>
</html>' '';
};
"/mopidy/" = {
proxyPass = "http://127.0.0.1:6680";
proxyWebsockets = true;
};
"/ledfx/" = {
proxyPass = "http://127.0.0.1:8888";
proxyWebsockets = true;
};
locations."/" = {
extraConfig = ''
add_header Content-Type text/html;
'';
return = ''200 '<!DOCTYPE html>
<html>
<body>
<ul>
<li><a href="https://drkkr.hq.c3d2.de/">Drucker</li></a>
<li><a href="https://ledfx.hq.c3d2.de/">LEDfx</li></a>
<li><a href="https://mopidy.hq.c3d2.de/muse/">Mopidy</li></a>
<li><a href="https://mopidy.hq.c3d2.de/youtube/">Mopidy - Add YouTube link</li></a>
</ul>
</body>
</html>' '';
};
};
};