add glance nginx

This commit is contained in:
Osman Faruk Bayram 2025-10-29 20:50:18 +03:00
parent 8f5256b7d6
commit 2d16ab4615

View file

@ -180,5 +180,18 @@
}; };
} }
) )
# if nginx and glance are both enabled, set up a reverse proxy
(lib.mkIf
(config.osbmModules.services.nginx.enable && config.osbmModules.services.glance.enable)
{
services.nginx.virtualHosts."home.osbm.dev" = {
forceSSL = true;
locations."/" = {
proxyPass = "http://localhost:${toString config.services.glance.settings.server.port}";
};
};
}
)
]; ];
} }