Disable PostgreSQL TCP/IP connection
This commit is contained in:
parent
d8b415ee16
commit
ccd3744d0c
|
@ -13,6 +13,7 @@
|
||||||
database = {
|
database = {
|
||||||
type = "postgres";
|
type = "postgres";
|
||||||
passwordFile = "/var/keys/gitea/db";
|
passwordFile = "/var/keys/gitea/db";
|
||||||
|
socket = "/run/postgresql/.s.PGSQL.5432";
|
||||||
};
|
};
|
||||||
cookieSecure = true;
|
cookieSecure = true;
|
||||||
disableRegistration = true;
|
disableRegistration = true;
|
||||||
|
|
|
@ -108,12 +108,11 @@
|
||||||
# Generated file; do not edit!
|
# Generated file; do not edit!
|
||||||
# TYPE DATABASE USER ADDRESS METHOD
|
# TYPE DATABASE USER ADDRESS METHOD
|
||||||
local all all trust
|
local all all trust
|
||||||
host all all 127.0.0.1/32 trust
|
|
||||||
host all all ::1/128 trust
|
|
||||||
'';
|
'';
|
||||||
identMap = ''
|
identMap = ''
|
||||||
gitea-users gitea gitea
|
gitea-users gitea gitea
|
||||||
'';
|
'';
|
||||||
|
extraConfig = "listen_addresses = ''";
|
||||||
};
|
};
|
||||||
|
|
||||||
# PostgreSQL daily backups
|
# PostgreSQL daily backups
|
||||||
|
@ -124,12 +123,12 @@
|
||||||
startAt = "*-*-* 05:15:00";
|
startAt = "*-*-* 05:15:00";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
# Miniflux configuration
|
# Miniflux configuration
|
||||||
services.miniflux = {
|
services.miniflux = {
|
||||||
enable = true;
|
enable = true;
|
||||||
adminCredentialsFile = "/var/keys/miniflux/admin";
|
adminCredentialsFile = "/var/keys/miniflux/admin";
|
||||||
config = {
|
config = {
|
||||||
|
LISTEN_ADDR = "/run/postgresql/.s.PGSQL.5432";
|
||||||
BASE_URL = "https://coolneng.duckdns.org/miniflux/";
|
BASE_URL = "https://coolneng.duckdns.org/miniflux/";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue