- 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;
- '';
- };
- };
- };
- };
-