mirror of
https://github.com/Ahwxorg/nixos-config.git
synced 2025-12-04 15:00:13 +01:00
feat?: try with internal db
This commit is contained in:
parent
c192c433c6
commit
4bba7bbf2a
1 changed files with 13 additions and 12 deletions
|
|
@ -2,26 +2,27 @@
|
||||||
{
|
{
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
postgresql = {
|
# postgresql = {
|
||||||
enable = true;
|
# enable = true;
|
||||||
initialScript = pkgs.writeText "iceshrimp.sql" ''
|
# initialScript = pkgs.writeText "iceshrimp.sql" ''
|
||||||
CREATE ROLE "iceshrimp" WITH LOGIN PASSWORD 'uph2reeloo3aeDae4muc';
|
# CREATE ROLE "iceshrimp" WITH LOGIN PASSWORD 'uph2reeloo3aeDae4muc';
|
||||||
CREATE DATABASE "iceshrimp" WITH OWNER "iceshrimp"
|
# CREATE DATABASE "iceshrimp" WITH OWNER "iceshrimp"
|
||||||
TEMPLATE template0
|
# TEMPLATE template0
|
||||||
LC_COLLATE = "C"
|
# LC_COLLATE = "C"
|
||||||
LC_CTYPE = "C";
|
# LC_CTYPE = "C";
|
||||||
'';
|
# '';
|
||||||
};
|
# };
|
||||||
|
|
||||||
|
|
||||||
iceshrimp = {
|
iceshrimp = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
configureNginx = true;
|
configureNginx = true;
|
||||||
|
createDb = true;
|
||||||
url = "https://fedi.liv.town"; # The domain your Iceshrimp UI will be served on.
|
url = "https://fedi.liv.town"; # The domain your Iceshrimp UI will be served on.
|
||||||
settings.db.host = "/run/postgresql"; # omitting this setting causes some configurations to fail
|
# settings.db.host = "/run/postgresql"; # omitting this setting causes some configurations to fail
|
||||||
};
|
};
|
||||||
dbPasswordFile = /var/iceshrimp/dbPasswordFile;
|
# dbPasswordFile = /var/iceshrimp/dbPasswordFile;
|
||||||
secretConfig = /var/iceshrimp/secretConfig.yml;
|
secretConfig = /var/iceshrimp/secretConfig.yml;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue