Skip to content

Commit

Permalink
Merge pull request #278 from barrucadu/carcosa/redir
Browse files Browse the repository at this point in the history
 [carcosa] Redirect carcosa.barrucadu.co.uk to www.barrucadu.co.uk
  • Loading branch information
barrucadu authored Apr 7, 2024
2 parents d2972a6 + 1fe79c4 commit 041b132
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 18 deletions.
36 changes: 18 additions & 18 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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 041b132

Please sign in to comment.