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

pull/1/head^2
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";
};
};
};
}