From: Ismaƫl Bouya Date: Fri, 28 Dec 2018 16:04:26 +0000 (+0100) Subject: Remove nginx configuration X-Git-Tag: nur_publish~397 X-Git-Url: https://git.immae.eu/?p=perso%2FImmae%2FConfig%2FNix.git;a=commitdiff_plain;h=cbc248ed9c13781b3beca56c902531b3ae056041 Remove nginx configuration --- diff --git a/virtual/eldiron.nix b/virtual/eldiron.nix index 55b0bf7..38f753c 100644 --- a/virtual/eldiron.nix +++ b/virtual/eldiron.nix @@ -135,50 +135,6 @@ ]; }; - services.nginx = rec { - enable = false; - virtualHosts = { - "_" = { - serverName = "_"; - useACMEHost = "eldiron"; - }; - "eldiron.immae.eu" = { - forceSSL = true; - useACMEHost = "eldiron"; - locations."/" = { - # FIXME: directory needs to exist - root = "/var/www"; - extraConfig = '' - include ${pkgs.nginx}/conf/fastcgi.conf; - fastcgi_split_path_info ^(.+?\.php)(/.*)$; - fastcgi_param HTTP_PROXY ""; - fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; - fastcgi_pass unix:/var/run/phpfpm/www.sock; - fastcgi_index index.php; - fastcgi_intercept_errors on; - ''; - }; - }; - "db-1.immae.eu" = { - forceSSL = true; - useACMEHost = "eldiron"; - locations."/adminer" = { - alias = mypkgs.adminer; - index = "index.php"; - extraConfig = '' - include ${pkgs.nginx}/conf/fastcgi.conf; - fastcgi_split_path_info ^(.+?\.php)(/.*)$; - fastcgi_param HTTP_PROXY ""; - fastcgi_param SCRIPT_FILENAME ${mypkgs.adminer}/index.php; - fastcgi_pass unix:/var/run/phpfpm/adminer.sock; - fastcgi_index index.php; - fastcgi_intercept_errors on; - ''; - }; - }; - }; - }; - # FIXME: environment variables ? security.pam.services = let pam_ldap = pkgs.pam_ldap;