lemmy: remove debugging statements

This commit is contained in:
Colin 2023-05-12 04:49:15 +00:00
parent 079ab08642
commit d7bed3bec2

View File

@ -13,16 +13,6 @@ in {
# federation.debug forces outbound federation queries to be run synchronously
# settings.federation.debug = true;
settings.port = backendPort;
# settings.database.host = "localhost";
# defaults
# settings.database = {
# user = "lemmy";
# host = "/run/postgresql";
# # host = "localhost"; # fails with "fe_sendauth: no password supplied"
# port = 5432;
# database = "lemmy";
# pool_size = 5;
# };
ui.port = uiPort;
database.createLocally = true;
};
@ -32,11 +22,10 @@ in {
DynamicUser = mkForce false;
User = "lemmy";
Group = "lemmy";
# Environment = [ "RUST_BACKTRACE=full" "RUST_LOG=info" ];
};
systemd.services.lemmy.environment = {
RUST_BACKTRACE = "full";
RUST_LOG = "debug";
# RUST_LOG = "debug";
# upstream defaults LEMMY_DATABASE_URL = "postgres:///lemmy?host=/run/postgresql";
# - Postgres complains that we didn't specify a user
# lemmy formats the url as:
@ -45,7 +34,7 @@ in {
# - postgresql://[user[:password]@][netloc][:port][/dbname][?param1=value1&...]
# LEMMY_DATABASE_URL = "postgres://lemmy@/run/postgresql"; # connection to server on socket "/run/postgresql/.s.PGSQL.5432" failed: FATAL: database "run/postgresql" does not exist
# LEMMY_DATABASE_URL = "postgres://lemmy?host=/run/postgresql"; # no PostgreSQL user name specified in startup packet
# LEMMY_DATABASE_URL = mkForce "postgres://lemmy@?host=/run/postgresql"; # WORKS!
# LEMMY_DATABASE_URL = mkForce "postgres://lemmy@?host=/run/postgresql"; # WORKS
LEMMY_DATABASE_URL = mkForce "postgres://lemmy@/lemmy?host=/run/postgresql";
};
users.groups.lemmy = {};