update readme

This commit is contained in:
xenia 2024-04-23 18:37:49 -04:00
parent 69d374a24f
commit e85f1c42c5
1 changed files with 17 additions and 0 deletions

View File

@ -160,6 +160,23 @@ pkgs.fetchFromSteam {
}
```
### `mkNginxServer`
creates a shell script that launches nginx in the foreground as the current user. the nginx is
configured to run an http server on `localhost:8080` with the given `siteConfig`
example:
```nix
pkgs.mkNginxServer {
siteConfig = ''
location / {
root path/to/development_site_root;
error_page 404 /404.html;
}
'';
}
```
## licensing
this repository is NOT licensed under a "standard" FOSS license. instead, it uses