forked from mirrors_public/oddlama_nix-config
feat: add plausible analytics for blog
This commit is contained in:
parent
3383fd9a14
commit
c30ec709a7
16 changed files with 277 additions and 91 deletions
23
hosts/sentinel/postgresql.nix
Normal file
23
hosts/sentinel/postgresql.nix
Normal file
|
@ -0,0 +1,23 @@
|
|||
{pkgs, ...}: {
|
||||
services.postgresql = {
|
||||
enable = true;
|
||||
package = pkgs.postgresql_16_jit;
|
||||
|
||||
# Doesn't work with plausible, since it wants to connect as the postgres
|
||||
# for some (probably unecessary) reason.
|
||||
#
|
||||
# authentication = lib.mkForce ''
|
||||
# #type database DBuser auth-method optional_ident_map
|
||||
# local sameuser all peer map=superuser_map
|
||||
# local all postgres peer map=superuser_map
|
||||
# '';
|
||||
#
|
||||
# identMap = ''
|
||||
# # ArbitraryMapName systemUser DBUser
|
||||
# superuser_map root postgres
|
||||
# superuser_map postgres postgres
|
||||
# # Let other names login as themselves
|
||||
# superuser_map /^(.*)$ \1
|
||||
# '';
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue