mirror of
https://github.com/ditatompel/xmr-remote-nodes.git
synced 2024-11-16 17:07:36 +00: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
|
||||
# #############
|
||||
SECRET_KEY="" # must be 32 char length, use `openssl rand -base64 32` to generate random secret
|
||||
|
||||
# Fiber Config
|
||||
APP_PREFORK=true
|
||||
APP_HOST="127.0.0.1"
|
||||
APP_PORT=18090
|
||||
APP_PROXY_HEADER="X-Real-Ip" # CF-Connecting-IP
|
||||
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_PORT=3306
|
||||
DB_USER=root
|
||||
|
|
|
@ -9,13 +9,14 @@ import (
|
|||
type App struct {
|
||||
// general config
|
||||
LogLevel string
|
||||
|
||||
// configuration for server
|
||||
Prefork bool
|
||||
Host string
|
||||
Port int
|
||||
ProxyHeader string
|
||||
AllowOrigin string
|
||||
SecretKey string
|
||||
|
||||
// configuration for prober (client)
|
||||
ServerEndpoint string
|
||||
ApiKey string
|
||||
|
@ -50,7 +51,6 @@ func LoadApp() {
|
|||
app.Prefork, _ = strconv.ParseBool(os.Getenv("APP_PREFORK"))
|
||||
app.ProxyHeader = os.Getenv("APP_PROXY_HEADER")
|
||||
app.AllowOrigin = os.Getenv("APP_ALLOW_ORIGIN")
|
||||
app.SecretKey = os.Getenv("SECRET_KEY")
|
||||
|
||||
// prober configuration
|
||||
app.ServerEndpoint = os.Getenv("SERVER_ENDPOINT")
|
||||
|
|
Loading…
Reference in a new issue