Skip to content

Commit bae3f20

Browse files
authored
Merge pull request cachix#1561 from thesoulless/main
Add Nginx example
2 parents a337f88 + bb3b494 commit bae3f20

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

examples/nginx/devenv.nix

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{ pkgs, config, ... }:
2+
3+
{
4+
services = {
5+
nginx = {
6+
enable = true;
7+
package = pkgs.nginx;
8+
httpConfig = ''
9+
keepalive_timeout 65;
10+
11+
server {
12+
listen 8400;
13+
server_name _;
14+
15+
root ${config.env.DEVENV_ROOT};
16+
}
17+
'';
18+
};
19+
};
20+
}
21+

0 commit comments

Comments
 (0)