From 3e0e9f8cdab637178544dacb41327618a990ab82 Mon Sep 17 00:00:00 2001 From: korenstin Date: Sat, 14 Jun 2025 17:56:22 +0200 Subject: [PATCH] configuration reverseproxy avec install-party --- hosts/vm/reverseproxy/default.nix | 23 +++++++++++++++++++++++ secrets.nix | 1 + 2 files changed, 24 insertions(+) diff --git a/hosts/vm/reverseproxy/default.nix b/hosts/vm/reverseproxy/default.nix index b724d32..fbaff96 100644 --- a/hosts/vm/reverseproxy/default.nix +++ b/hosts/vm/reverseproxy/default.nix @@ -6,10 +6,33 @@ ./networking.nix ../../../modules + ../../../modules/services/acme.nix + ../../../modules/services/nginx.nix ]; networking.hostName = "reverseproxy"; boot.loader.grub.devices = [ "/dev/sda" ]; system.stateVersion = "25.05"; + + services.nginx.virtualHosts = { + "install-party.crans.org" = { + enableACME = true; + forceSSL = true; + serverAliases = [ + "i-p.crans.org" + "adopteunmanchot.crans.org" + "adopteunpingouin.crans.org" + "i-p.crans.fr" + "install-party.crans.fr" + "adopteunmanchot.crans.fr" + "adopteunpingouin.crans.fr" + "i-p.crans.eu" + "install-party.crans.eu" + "adopteunmanchot.crans.eu" + "adopteunpingouin.crans.eu" + ]; + root = "/var/www/install-party.crans.org"; + }; + }; } diff --git a/secrets.nix b/secrets.nix index 47ed54a..0b97cdd 100644 --- a/secrets.nix +++ b/secrets.nix @@ -50,6 +50,7 @@ let acme = [ hosts.jitsi hosts.neo + hosts.reverseproxy ]; # Fonctions utilitaires