fix(garage): Fixed proxy config
This commit is contained in:
parent
6fb5d93ee7
commit
f00747b5f1
1 changed files with 13 additions and 15 deletions
|
@ -1,22 +1,20 @@
|
||||||
# TODO: Run as different user
|
# TODO: Run as different user
|
||||||
{...}: {
|
{config, ...}: {
|
||||||
sops.secrets."garage/RPC_SECRET".owner = "root";
|
sops.secrets."garage/RPC_SECRET".owner = "root";
|
||||||
|
|
||||||
services.caddy.virtualHosts."s3.gasdev.fr".extraConfig = ''
|
services.caddy.virtualHosts."s3.gasdev.fr *.s3.gasdev.fr" = {
|
||||||
|
logFormat = "output file ${config.services.caddy.logDir}/access-s3.gasdev.fr.log";
|
||||||
|
extraConfig = ''
|
||||||
reverse_proxy http://127.0.0.1:3900
|
reverse_proxy http://127.0.0.1:3900
|
||||||
'';
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
services.caddy.virtualHosts."*.s3.gasdev.fr".extraConfig = ''
|
services.caddy.virtualHosts."s3web.gasdev.fr *.s3web.gasdev.fr" = {
|
||||||
reverse_proxy http://127.0.0.1:3900
|
logFormat = "output file ${config.services.caddy.logDir}/access-s3web.gasdev.fr.log";
|
||||||
'';
|
extraConfig = ''
|
||||||
|
|
||||||
services.caddy.virtualHosts."s3web.gasdev.fr".extraConfig = ''
|
|
||||||
reverse_proxy http://127.0.0.1:3900
|
|
||||||
'';
|
|
||||||
|
|
||||||
services.caddy.virtualHosts."*.s3web.gasdev.fr".extraConfig = ''
|
|
||||||
reverse_proxy http://127.0.0.1:3902
|
reverse_proxy http://127.0.0.1:3902
|
||||||
'';
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
virtualisation.oci-containers.containers = {
|
virtualisation.oci-containers.containers = {
|
||||||
garage = {
|
garage = {
|
||||||
|
|
Loading…
Reference in a new issue