services/forgejo: forgejo but make it COOL
This commit is contained in:
parent
ae66e9fd21
commit
9169f05ff5
4 changed files with 16 additions and 0 deletions
BIN
assets/forgejo-favicon.png
Normal file
BIN
assets/forgejo-favicon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 27 KiB |
BIN
assets/forgejo-logo.png
Normal file
BIN
assets/forgejo-logo.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 35 KiB |
|
@ -65,6 +65,9 @@
|
|||
# racket
|
||||
"*.rkt"
|
||||
"**/rashrc"
|
||||
|
||||
# custom assets
|
||||
"*.png"
|
||||
];
|
||||
settings.on-unmatched = "fatal";
|
||||
};
|
||||
|
|
|
@ -37,6 +37,19 @@
|
|||
};
|
||||
};
|
||||
|
||||
systemd.tmpfiles.rules =
|
||||
let
|
||||
cfg = config.services.forgejo;
|
||||
in
|
||||
[
|
||||
"d '${cfg.customDir}/public' 0750 ${cfg.user} ${cfg.group} - -"
|
||||
"d '${cfg.customDir}/public/assets' 0750 ${cfg.user} ${cfg.group} - -"
|
||||
"d '${cfg.customDir}/public/assets/img' 0750 ${cfg.user} ${cfg.group} - -"
|
||||
|
||||
"L+ '${cfg.customDir}/public/assets/img/logo.png' - - - - ${../assets/forgejo-logo.png}"
|
||||
"L+ '${cfg.customDir}/public/assets/img/favicon.png' - - - - ${../assets/forgejo-favicon.png}"
|
||||
];
|
||||
|
||||
services.nginx = {
|
||||
enable = true;
|
||||
recommendedProxySettings = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue