diff options
author | makefu <github@syntax-fehler.de> | 2016-12-24 23:38:01 +0100 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2016-12-24 23:38:01 +0100 |
commit | 1745abde62a68800e065aca8c0d8452ebd005da6 (patch) | |
tree | 30c6a557e55bb6a78588ee73f68d8db59d9d217e /makefu/2configs/nginx/icecult.nix | |
parent | 78c50fe49599b5c3dd147ebd23253fa2abe53998 (diff) |
m 2 *: krebs.nginx -> services.nginx
Diffstat (limited to 'makefu/2configs/nginx/icecult.nix')
-rw-r--r-- | makefu/2configs/nginx/icecult.nix | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/makefu/2configs/nginx/icecult.nix b/makefu/2configs/nginx/icecult.nix index ce4f62e55..e817e55d8 100644 --- a/makefu/2configs/nginx/icecult.nix +++ b/makefu/2configs/nginx/icecult.nix @@ -10,19 +10,17 @@ let sha256 = "0l8q7kw3w1kpvmy8hza9vr5liiycivbljkmwpacaifbay5y98z58"; }; in{ - krebs.nginx = { + services.nginx = { enable = true; - servers.default = { - extraConfig = '' - root ${icecult}/app; + virtualHosts.default = { + root = "${icecult}/app"; + locations = { + "/rpc".proxyPass = "http://10.42.22.163:3121"; + "/rpc".extraConfig = '' + rewrite /rpc/(.*) /$1 break; + proxy_http_version 1.1; ''; - locations = [ - (nameValuePair "/rpc" '' - rewrite /rpc/(.*) /$1 break; - proxy_http_version 1.1; - proxy_pass http://10.42.22.163:3121; - '') - ]; + }; }; }; } |