Add beanz.one to nginx and update sources

This commit is contained in:
Amanda Graven 2022-02-27 17:30:31 +01:00
parent 11169d0667
commit c710e06232
Signed by: amanda
GPG key ID: F747582C5608F4CB
3 changed files with 25 additions and 6 deletions

View file

@ -1 +1,15 @@
NixOS deployments using [nixus](https://github.com/Infinisil/nixus). 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,10 @@
forceSSL = true; forceSSL = true;
locations."/".proxyPass = "http://127.0.0.1:9000"; locations."/".proxyPass = "http://127.0.0.1:9000";
}; };
"beanz.one" = {
locations."/" = {
root = "/var/www/beanz.one/public";
};
};
}; };
} }

View file

@ -17,10 +17,10 @@
"homepage": "", "homepage": "",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixos-hardware", "repo": "nixos-hardware",
"rev": "c361b954759195c2ac085fbbed5ad7d513e1585b", "rev": "c3c66f6db4ac74a59eb83d83e40c10046ebc0b8c",
"sha256": "0grx60c7qhidnna8d5i6mq4mymwpq8rlkrl275dgchv5yfy451js", "sha256": "1h5x8zgmxzdj15pgssn7nihi24ni63571q75hdpsz7zxgyjw2nyh",
"type": "tarball", "type": "tarball",
"url": "https://github.com/NixOS/nixos-hardware/archive/c361b954759195c2ac085fbbed5ad7d513e1585b.tar.gz", "url": "https://github.com/NixOS/nixos-hardware/archive/c3c66f6db4ac74a59eb83d83e40c10046ebc0b8c.tar.gz",
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz" "url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
}, },
"nixpkgs": { "nixpkgs": {
@ -29,10 +29,10 @@
"homepage": "", "homepage": "",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "c28fb0a4671ff2715c1922719797615945e5b6a0", "rev": "4275a321beab5a71872fb7a5fe5da511bb2bec73",
"sha256": "1qzvhxcsxb6s410xlfs4ggcvm1xbbd4jrazy6cpxc1rkrxbyz0kk", "sha256": "1p3pn7767ifbg08nmgjd93iqk0z87z4lv29ypalj9idwd3chsm69",
"type": "tarball", "type": "tarball",
"url": "https://github.com/NixOS/nixpkgs/archive/c28fb0a4671ff2715c1922719797615945e5b6a0.tar.gz", "url": "https://github.com/NixOS/nixpkgs/archive/4275a321beab5a71872fb7a5fe5da511bb2bec73.tar.gz",
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz" "url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
}, },
"nixus": { "nixus": {