Fsight : Add docker to host temporarily.
This commit is contained in:
parent
1e6412631b
commit
58eb4a4752
|
@ -48,6 +48,7 @@ in {
|
|||
"vpn"
|
||||
"fmp-git"
|
||||
"fmp-cloud"
|
||||
"fmp-dev"
|
||||
];
|
||||
};
|
||||
};
|
||||
|
|
|
@ -47,4 +47,21 @@ in {
|
|||
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;
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,4 +1,7 @@
|
|||
{ ... }: {
|
||||
# TODO: Remove this with Fsight container.
|
||||
virtualisation.docker.enable = true;
|
||||
|
||||
container = {
|
||||
enable = true;
|
||||
|
||||
|
|
Loading…
Reference in a new issue