diff --git a/config.example.json b/config.example.json index 0967ef4..15dc9f9 100644 --- a/config.example.json +++ b/config.example.json @@ -1 +1,35 @@ -{} +{ + "web": { + "host": "0.0.0.0", + "listen": 8080, + "ssl": { + "enabled": false, + "generateLetsEncrypt": true, + "certificate": "/etc/letsencrypt/live/pterodactyl.app/fullchain.pem", + "key": "/etc/letsencrypt/live/pterodactyl.app/privkey.pem" + } + }, + "docker": { + "socket": "/var/run/docker.sock", + "autoupdate_images": true, + "interface": "172.18.0.1", + "timezone_path": "/etc/timezone" + }, + "sftp": { + "path": "/srv/daemon-data", + "port": 2022 + }, + "query": { + "kill_on_fail": false, + "fail_limit": 5 + }, + "logger": { + "path": "logs/", + "level": "debug" + }, + "remote": "https://pterodactyl.app", + "uploads": { + "maximumSize": 150000000, + "size_limit": "100" + } +} diff --git a/config/config.go b/config/config.go index a84864f..e632601 100644 --- a/config/config.go +++ b/config/config.go @@ -18,6 +18,8 @@ type Config struct { SSL struct { // Enabled allows to enable or disable ssl Enabled bool `json:"enabled"` + // GenerateLetsEncrypt + GenerateLetsEncrypt bool `json:"GenerateLetsEncrypt"` // Certificate is the certificate file path to use Certificate string `json:"certificate"` // Key is the path to the private key for the certificate