mirror of
https://github.com/RGBCube/ncc
synced 2025-07-29 19:17:45 +00:00
Don't repeat the hostname
This commit is contained in:
parent
9c9c945b20
commit
eae2bf434e
3 changed files with 10 additions and 8 deletions
|
@ -7,7 +7,7 @@ systemConfiguration {
|
|||
passwordFile = config.secrets.resticPassword.path;
|
||||
initialize = true;
|
||||
|
||||
repository = "sftp:backup@${self.disk.networking.ipv4}:cube-varlib";
|
||||
repository = "sftp:backup@disk:${config.networking.hostName}-varlib";
|
||||
|
||||
paths = [ "/var/lib" ];
|
||||
|
||||
|
|
|
@ -13,11 +13,11 @@ in systemConfiguration {
|
|||
services.nginx = enabled {
|
||||
appendHttpConfig = ''
|
||||
map $http_origin $allow_origin {
|
||||
~^https://.+\.rgbcu.be$ $http_origin;
|
||||
~^https://.+\.${domain}$ $http_origin;
|
||||
}
|
||||
|
||||
map $http_origin $allow_methods {
|
||||
~^https://.+\.rgbcu.be$ "GET, HEAD, OPTIONS";
|
||||
~^https://.+\.${domain}$ "GET, HEAD, OPTIONS";
|
||||
}
|
||||
'';
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue