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 = {
|
services.matrix-continuwuity = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings.global = {
|
settings.global = {
|
||||||
|
# TODO: link this with outer container's address
|
||||||
|
address = [ "fd0d:1::2:2" ];
|
||||||
server_name = "lava.moe";
|
server_name = "lava.moe";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -17,6 +17,13 @@
|
||||||
internalInterfaces = [ "ve-+" ];
|
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" ];
|
systemd.tmpfiles.rules = [ "d /persist/containers/${name} 755 root users" ];
|
||||||
containers.${name} = {
|
containers.${name} = {
|
||||||
autoStart = true;
|
autoStart = true;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue