formatting
This commit is contained in:
parent
84fee06732
commit
48c6315748
1 changed files with 6 additions and 9 deletions
|
|
@ -182,18 +182,15 @@
|
||||||
)
|
)
|
||||||
|
|
||||||
# if nginx and glance are both enabled, set up a reverse proxy
|
# if nginx and glance are both enabled, set up a reverse proxy
|
||||||
(lib.mkIf
|
(lib.mkIf (config.osbmModules.services.nginx.enable && config.osbmModules.services.glance.enable) {
|
||||||
(config.osbmModules.services.nginx.enable && config.osbmModules.services.glance.enable)
|
services.nginx.virtualHosts."home.osbm.dev" = {
|
||||||
{
|
|
||||||
services.nginx.virtualHosts."home.osbm.dev" = {
|
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
locations."/" = {
|
locations."/" = {
|
||||||
proxyPass = "http://localhost:${toString config.services.glance.settings.server.port}";
|
proxyPass = "http://localhost:${toString config.services.glance.settings.server.port}";
|
||||||
proxyWebsockets = true;
|
proxyWebsockets = true;
|
||||||
};
|
|
||||||
};
|
};
|
||||||
}
|
};
|
||||||
)
|
})
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue