add glance nginx
This commit is contained in:
parent
8f5256b7d6
commit
2d16ab4615
1 changed files with 13 additions and 0 deletions
|
|
@ -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}";
|
||||
};
|
||||
};
|
||||
}
|
||||
)
|
||||
];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue