1 { pkgs ? import <nixpkgs> {} }: with pkgs;
3 greenapid = callPackage ./greenapid.nix {};
4 frontend = callPackage ./frontend.nix {};
5 nginx_conf = writeText "nginx.conf" ''
12 include ${mailcap}/etc/nginx/mime.types;
17 proxy_set_header X-Real-IP $remote_addr;
18 proxy_set_header Host $host;
19 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
20 proxy_pass http://127.0.0.1:8080/;
24 try_files $uri $uri/ /index.html;
47 nginx -c ${nginx_conf} -p ./nginx/