Skip to content

Commit

Permalink
[carcosa] Redirect carcosa.barrucadu.co.uk to www.barrucadu.co.uk
Browse files Browse the repository at this point in the history
  • Loading branch information
barrucadu committed Apr 7, 2024
1 parent f7a7581 commit 1fe79c4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions hosts/carcosa/configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,11 @@ in
'';
sops.secrets."services/caddy/fragments/misc_site".owner = config.users.users.caddy.name;

services.caddy.virtualHosts."carcosa.barrucadu.co.uk".extraConfig = ''
import common_config
redir https://www.barrucadu.co.uk
'';

services.caddy.virtualHosts."grafana.carcosa.barrucadu.co.uk".extraConfig = ''
import common_config
reverse_proxy http://localhost:${toString config.services.grafana.settings.server.http_port}
Expand Down

0 comments on commit 1fe79c4

Please sign in to comment.