Merge branch 'main' of git.graven.dev:emelie/nix-deploy

This commit is contained in:
Emelie Graven 2022-04-12 16:10:17 +02:00
commit 5669eb73f1
Signed by: emelie
GPG key ID: C11123726DBB55A1
2 changed files with 21 additions and 0 deletions

View file

@ -1 +1,15 @@
NixOS deployments using [nixus](https://github.com/Infinisil/nixus).
First make sure you have `niv` so you can upgrade dependency versions in `sources.json`.
```sh
$ nix-shell -p niv
$ (cd config/sources && niv update)
```
Build with:
```sh
$ nix-build deploy/
```
Deploy by running the generated executable.
```sh
$ ./results
```

View file

@ -30,5 +30,12 @@
forceSSL = true;
locations."/".proxyPass = "http://127.0.0.1:9000";
};
"beanz.one" = {
forceSSL = true;
enableACME = true;
locations."/" = {
root = "/var/www/beanz.one/public";
};
};
};
}