mirror of
https://github.com/ditatompel/xmr-remote-nodes.git
synced 2025-01-08 05:52:10 +07:00
Secret key environment variable no longer needed
This commit is contained in:
parent
253230dc5a
commit
2270fe4deb
2 changed files with 5 additions and 4 deletions
|
@ -11,14 +11,15 @@ TOR_SOCKS="127.0.0.1:9050"
|
||||||
|
|
||||||
# Server Config
|
# Server Config
|
||||||
# #############
|
# #############
|
||||||
SECRET_KEY="" # must be 32 char length, use `openssl rand -base64 32` to generate random secret
|
|
||||||
# Fiber Config
|
# Fiber Config
|
||||||
APP_PREFORK=true
|
APP_PREFORK=true
|
||||||
APP_HOST="127.0.0.1"
|
APP_HOST="127.0.0.1"
|
||||||
APP_PORT=18090
|
APP_PORT=18090
|
||||||
APP_PROXY_HEADER="X-Real-Ip" # CF-Connecting-IP
|
APP_PROXY_HEADER="X-Real-Ip" # CF-Connecting-IP
|
||||||
APP_ALLOW_ORIGIN="http://localhost:5173,http://127.0.0.1:5173,https://ditatompel.com"
|
APP_ALLOW_ORIGIN="http://localhost:5173,http://127.0.0.1:5173,https://ditatompel.com"
|
||||||
# DB settings:
|
|
||||||
|
#DB settings:
|
||||||
DB_HOST=127.0.0.1
|
DB_HOST=127.0.0.1
|
||||||
DB_PORT=3306
|
DB_PORT=3306
|
||||||
DB_USER=root
|
DB_USER=root
|
||||||
|
|
|
@ -9,13 +9,14 @@ import (
|
||||||
type App struct {
|
type App struct {
|
||||||
// general config
|
// general config
|
||||||
LogLevel string
|
LogLevel string
|
||||||
|
|
||||||
// configuration for server
|
// configuration for server
|
||||||
Prefork bool
|
Prefork bool
|
||||||
Host string
|
Host string
|
||||||
Port int
|
Port int
|
||||||
ProxyHeader string
|
ProxyHeader string
|
||||||
AllowOrigin string
|
AllowOrigin string
|
||||||
SecretKey string
|
|
||||||
// configuration for prober (client)
|
// configuration for prober (client)
|
||||||
ServerEndpoint string
|
ServerEndpoint string
|
||||||
ApiKey string
|
ApiKey string
|
||||||
|
@ -50,7 +51,6 @@ func LoadApp() {
|
||||||
app.Prefork, _ = strconv.ParseBool(os.Getenv("APP_PREFORK"))
|
app.Prefork, _ = strconv.ParseBool(os.Getenv("APP_PREFORK"))
|
||||||
app.ProxyHeader = os.Getenv("APP_PROXY_HEADER")
|
app.ProxyHeader = os.Getenv("APP_PROXY_HEADER")
|
||||||
app.AllowOrigin = os.Getenv("APP_ALLOW_ORIGIN")
|
app.AllowOrigin = os.Getenv("APP_ALLOW_ORIGIN")
|
||||||
app.SecretKey = os.Getenv("SECRET_KEY")
|
|
||||||
|
|
||||||
// prober configuration
|
// prober configuration
|
||||||
app.ServerEndpoint = os.Getenv("SERVER_ENDPOINT")
|
app.ServerEndpoint = os.Getenv("SERVER_ENDPOINT")
|
||||||
|
|
Loading…
Reference in a new issue