containers/beryllium: add nginx configuration
This commit is contained in:
parent
52a3e8557e
commit
c42fdb7940
2 changed files with 9 additions and 0 deletions
|
|
@ -9,6 +9,8 @@
|
|||
services.matrix-continuwuity = {
|
||||
enable = true;
|
||||
settings.global = {
|
||||
# TODO: link this with outer container's address
|
||||
address = [ "fd0d:1::2:2" ];
|
||||
server_name = "lava.moe";
|
||||
};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -17,6 +17,13 @@
|
|||
internalInterfaces = [ "ve-+" ];
|
||||
};
|
||||
|
||||
services.nginx.virtualHosts."beryllium.lava.moe" = {
|
||||
useACMEHost = "lava.moe";
|
||||
forceSSL = true;
|
||||
locations."/".proxyPass = "http://[fd0d:1::${subnet}:2]:6167";
|
||||
listenAddresses = [ "10.0.0.1" "[fd0d::1]" ];
|
||||
};
|
||||
|
||||
systemd.tmpfiles.rules = [ "d /persist/containers/${name} 755 root users" ];
|
||||
containers.${name} = {
|
||||
autoStart = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue