From afaf8e7d40a29eab2a6a16ca6cb501ca24befdad Mon Sep 17 00:00:00 2001 From: Xeronith Date: Mon, 1 May 2023 14:43:07 +0330 Subject: [PATCH] fix(components): :wrench: update default config --- .dockerignore | 2 -- .gitignore | 2 -- config.yaml | 19 +++++++++++++++++++ config.yaml.sample | 9 ++++++++- 4 files changed, 27 insertions(+), 5 deletions(-) create mode 100644 config.yaml diff --git a/.dockerignore b/.dockerignore index 7518f8d..3dd2b76 100644 --- a/.dockerignore +++ b/.dockerignore @@ -366,5 +366,3 @@ __debug_bin .ionide # End of https://www.toptal.com/developers/gitignore/api/visualstudiocode,intellij+all,goland+all,go,node,macos - -config.yaml diff --git a/.gitignore b/.gitignore index 3f81e26..051520a 100644 --- a/.gitignore +++ b/.gitignore @@ -367,5 +367,3 @@ __debug_bin .ionide # End of https://www.toptal.com/developers/gitignore/api/visualstudiocode,intellij+all,goland+all,go,node,macos - -config.yaml diff --git a/config.yaml b/config.yaml new file mode 100644 index 0000000..aba53b6 --- /dev/null +++ b/config.yaml @@ -0,0 +1,19 @@ +environment: development + +server: + fqdn: localhost + protocol: http + ports: + passive: 7080 + + # used for secure cookie + # doc: https://pkg.go.dev/github.com/gorilla/securecookie@v1.1.1 + hash_key: '---INSERT-YOUR-HASH-KEY---' + block_key: '---INSERT-YOUR-BLOCK-KEY---' + +postgres: + host: 127.0.0.1 + port: 5432 + database: greatape + username: postgres + password: password diff --git a/config.yaml.sample b/config.yaml.sample index d200f5a..aba53b6 100644 --- a/config.yaml.sample +++ b/config.yaml.sample @@ -1,9 +1,16 @@ environment: development + server: - protocol: http fqdn: localhost + protocol: http + ports: + passive: 7080 + + # used for secure cookie + # doc: https://pkg.go.dev/github.com/gorilla/securecookie@v1.1.1 hash_key: '---INSERT-YOUR-HASH-KEY---' block_key: '---INSERT-YOUR-BLOCK-KEY---' + postgres: host: 127.0.0.1 port: 5432