migrate to clan
This commit is contained in:
18
machines/genepi/glance.nix
Normal file
18
machines/genepi/glance.nix
Normal file
@@ -0,0 +1,18 @@
|
||||
{ config, ... }:
|
||||
let
|
||||
domain = "home.rpqt.fr";
|
||||
subdomain = "glance.${domain}";
|
||||
in
|
||||
{
|
||||
services.glance = {
|
||||
enable = true;
|
||||
settings = ./glance-config.nix;
|
||||
};
|
||||
|
||||
services.nginx.virtualHosts.${subdomain} = {
|
||||
forceSSL = true;
|
||||
useACMEHost = "${domain}";
|
||||
locations."/".proxyPass =
|
||||
"http://127.0.0.1:${toString config.services.glance.settings.server.port}";
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user