1
0
mirror of https://github.com/pocket-id/pocket-id.git synced 2026-02-10 14:19:20 +00:00

feat: add unix socket support (#615)

This commit is contained in:
Mr Snake
2025-06-06 15:01:19 +08:00
committed by GitHub
parent 61b62d4612
commit 035b2c022b
2 changed files with 12 additions and 4 deletions

View File

@@ -32,6 +32,7 @@ type EnvConfigSchema struct {
KeysPath string `env:"KEYS_PATH"`
Port string `env:"PORT"`
Host string `env:"HOST"`
UnixSocket string `env:"UNIX_SOCKET"`
MaxMindLicenseKey string `env:"MAXMIND_LICENSE_KEY"`
GeoLiteDBPath string `env:"GEOLITE_DB_PATH"`
GeoLiteDBUrl string `env:"GEOLITE_DB_URL"`
@@ -51,6 +52,7 @@ var EnvConfig = &EnvConfigSchema{
AppURL: "http://localhost:1411",
Port: "1411",
Host: "0.0.0.0",
UnixSocket: "",
MaxMindLicenseKey: "",
GeoLiteDBPath: "data/GeoLite2-City.mmdb",
GeoLiteDBUrl: MaxMindGeoLiteCityUrl,