diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2018-12-28 17:04:26 +0100 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2018-12-28 17:04:26 +0100 |
commit | cbc248ed9c13781b3beca56c902531b3ae056041 (patch) | |
tree | d3798961e536d1343b29b9396ffe481347af841c | |
parent | 58d1a7828bde7f9a432c31b9d3b381ba27b7e3d9 (diff) | |
download | Nix-cbc248ed9c13781b3beca56c902531b3ae056041.tar.gz Nix-cbc248ed9c13781b3beca56c902531b3ae056041.tar.zst Nix-cbc248ed9c13781b3beca56c902531b3ae056041.zip |
Remove nginx configuration
-rw-r--r-- | virtual/eldiron.nix | 44 |
1 files changed, 0 insertions, 44 deletions
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 @@ | |||
135 | ]; | 135 | ]; |
136 | }; | 136 | }; |
137 | 137 | ||
138 | services.nginx = rec { | ||
139 | enable = false; | ||
140 | virtualHosts = { | ||
141 | "_" = { | ||
142 | serverName = "_"; | ||
143 | useACMEHost = "eldiron"; | ||
144 | }; | ||
145 | "eldiron.immae.eu" = { | ||
146 | forceSSL = true; | ||
147 | useACMEHost = "eldiron"; | ||
148 | locations."/" = { | ||
149 | # FIXME: directory needs to exist | ||
150 | root = "/var/www"; | ||
151 | extraConfig = '' | ||
152 | include ${pkgs.nginx}/conf/fastcgi.conf; | ||
153 | fastcgi_split_path_info ^(.+?\.php)(/.*)$; | ||
154 | fastcgi_param HTTP_PROXY ""; | ||
155 | fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | ||
156 | fastcgi_pass unix:/var/run/phpfpm/www.sock; | ||
157 | fastcgi_index index.php; | ||
158 | fastcgi_intercept_errors on; | ||
159 | ''; | ||
160 | }; | ||
161 | }; | ||
162 | "db-1.immae.eu" = { | ||
163 | forceSSL = true; | ||
164 | useACMEHost = "eldiron"; | ||
165 | locations."/adminer" = { | ||
166 | alias = mypkgs.adminer; | ||
167 | index = "index.php"; | ||
168 | extraConfig = '' | ||
169 | include ${pkgs.nginx}/conf/fastcgi.conf; | ||
170 | fastcgi_split_path_info ^(.+?\.php)(/.*)$; | ||
171 | fastcgi_param HTTP_PROXY ""; | ||
172 | fastcgi_param SCRIPT_FILENAME ${mypkgs.adminer}/index.php; | ||
173 | fastcgi_pass unix:/var/run/phpfpm/adminer.sock; | ||
174 | fastcgi_index index.php; | ||
175 | fastcgi_intercept_errors on; | ||
176 | ''; | ||
177 | }; | ||
178 | }; | ||
179 | }; | ||
180 | }; | ||
181 | |||
182 | # FIXME: environment variables ? | 138 | # FIXME: environment variables ? |
183 | security.pam.services = let | 139 | security.pam.services = let |
184 | pam_ldap = pkgs.pam_ldap; | 140 | pam_ldap = pkgs.pam_ldap; |