add example config

add generateLetsEncrypt setting
This commit is contained in:
Jakob Schrettenbrunner 2017-06-19 16:20:58 +02:00
parent 03acc4d5a3
commit f244cda20f
2 changed files with 37 additions and 1 deletions

View File

@ -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"
}
}

View File

@ -18,6 +18,8 @@ type Config struct {
SSL struct { SSL struct {
// Enabled allows to enable or disable ssl // Enabled allows to enable or disable ssl
Enabled bool `json:"enabled"` Enabled bool `json:"enabled"`
// GenerateLetsEncrypt
GenerateLetsEncrypt bool `json:"GenerateLetsEncrypt"`
// Certificate is the certificate file path to use // Certificate is the certificate file path to use
Certificate string `json:"certificate"` Certificate string `json:"certificate"`
// Key is the path to the private key for the certificate // Key is the path to the private key for the certificate