Fsight : Add docker to host temporarily.

This commit is contained in:
Dmitry Voronin 2024-07-05 15:23:03 +03:00
parent 1e6412631b
commit 58eb4a4752
Signed by: voronind
SSH key fingerprint: SHA256:3kBb4iV2ahufEBNq+vFbUe4QYfHt98DHQjN7QaptY9k
3 changed files with 22 additions and 1 deletions

View file

@ -38,7 +38,7 @@ in {
proxied = false; proxied = false;
domains = let domains = let
domain = config.container.domain; domain = config.container.domain;
in [ domain ] ++ map (sub: "${sub}.${domain}") [ in [ domain ] ++ map (sub: "${sub}.${domain}") [
"cloud" "cloud"
"git" "git"
"mail" "mail"
@ -48,6 +48,7 @@ in {
"vpn" "vpn"
"fmp-git" "fmp-git"
"fmp-cloud" "fmp-cloud"
"fmp-dev"
]; ];
}; };
}; };

View file

@ -47,4 +47,21 @@ in {
ssl_dhparam /etc/letsencrypt/conf/ssl-dhparams.pem; ssl_dhparam /etc/letsencrypt/conf/ssl-dhparams.pem;
''; '';
}; };
"fmp-dev.${domain}" = container.mkServer {
extraConfig = util.trimTabs ''
listen 443 ssl;
set $fmpdev ${config.container.host}:8079;
location / {
proxy_pass http://$fmpdev$request_uri;
add_header Referrer-Policy 'origin';
}
ssl_certificate /etc/letsencrypt/live/${config.container.domain}/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/${config.container.domain}/privkey.pem;
include /etc/letsencrypt/conf/options-ssl-nginx.conf;
ssl_dhparam /etc/letsencrypt/conf/ssl-dhparams.pem;
'';
};
} }

View file

@ -1,4 +1,7 @@
{ ... }: { { ... }: {
# TODO: Remove this with Fsight container.
virtualisation.docker.enable = true;
container = { container = {
enable = true; enable = true;