Initial commit
This commit is contained in:
commit
f67dcd8f2a
31 changed files with 3297 additions and 0 deletions
45
README.md
Normal file
45
README.md
Normal file
|
@ -0,0 +1,45 @@
|
|||
# vnj
|
||||
|
||||
VN journal and post scheduling.
|
||||
|
||||
This thing is made in a couple of hours and its throwaway, so the code is real shit.
|
||||
|
||||
# Use-cases
|
||||
|
||||
Main use-case is to keep what we post in the channel locally, so we could fill upcoming site with content faster, additionally helps with scheduling.
|
||||
|
||||
# Development & Deployment
|
||||
|
||||
Wanna contribute? There's `flake.nix` file to set up development environment:
|
||||
|
||||
```shell
|
||||
$ nix develop
|
||||
```
|
||||
|
||||
Wanna deploy yourself? I made the nixos module for that:
|
||||
|
||||
```nix
|
||||
let
|
||||
mkCfg = port: {
|
||||
app = {
|
||||
secret.path = "path/to/secret";
|
||||
journal = "path/to/journal";
|
||||
};
|
||||
|
||||
http = {
|
||||
listen = "0.0.0.0:${port}"
|
||||
};
|
||||
};
|
||||
in
|
||||
{
|
||||
services.vnj = {
|
||||
enable = true;
|
||||
|
||||
instances.en = mkCfg 8081;
|
||||
instances.ru = mkCfg 8082;
|
||||
};
|
||||
}
|
||||
```
|
||||
|
||||
Enjoy.
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue