Disable PostgreSQL TCP/IP connection

This commit is contained in:
coolneng 2019-12-15 22:37:37 +01:00
parent d8b415ee16
commit ccd3744d0c
Signed by: coolneng
GPG Key ID: 9893DA236405AF57
2 changed files with 3 additions and 3 deletions

View File

@ -13,6 +13,7 @@
database = {
type = "postgres";
passwordFile = "/var/keys/gitea/db";
socket = "/run/postgresql/.s.PGSQL.5432";
};
cookieSecure = true;
disableRegistration = true;

View File

@ -108,12 +108,11 @@
# Generated file; do not edit!
# TYPE DATABASE USER ADDRESS METHOD
local all all trust
host all all 127.0.0.1/32 trust
host all all ::1/128 trust
'';
identMap = ''
gitea-users gitea gitea
'';
extraConfig = "listen_addresses = ''";
};
# PostgreSQL daily backups
@ -124,12 +123,12 @@
startAt = "*-*-* 05:15:00";
};
# Miniflux configuration
services.miniflux = {
enable = true;
adminCredentialsFile = "/var/keys/miniflux/admin";
config = {
LISTEN_ADDR = "/run/postgresql/.s.PGSQL.5432";
BASE_URL = "https://coolneng.duckdns.org/miniflux/";
};
};