mirror of
https://github.com/thomiceli/opengist
synced 2024-11-12 07:05:50 +01:00
Remove TLS server (#101)
This commit is contained in:
parent
689fd21afa
commit
b31d95c7f6
@ -123,9 +123,6 @@ You would only need to specify the configuration options you want to change —
|
|||||||
| http.host | OG_HTTP_HOST | `0.0.0.0` | The host on which the HTTP server should bind. |
|
| http.host | OG_HTTP_HOST | `0.0.0.0` | The host on which the HTTP server should bind. |
|
||||||
| http.port | OG_HTTP_PORT | `6157` | The port on which the HTTP server should listen. |
|
| http.port | OG_HTTP_PORT | `6157` | The port on which the HTTP server should listen. |
|
||||||
| http.git-enabled | OG_HTTP_GIT_ENABLED | `true` | Enable or disable git operations (clone, pull, push) via HTTP. (`true` or `false`) |
|
| http.git-enabled | OG_HTTP_GIT_ENABLED | `true` | Enable or disable git operations (clone, pull, push) via HTTP. (`true` or `false`) |
|
||||||
| http.tls-enabled | OG_HTTP_TLS_ENABLED | `false` | Enable or disable TLS for the HTTP server. (`true` or `false`) |
|
|
||||||
| http.cert-file | OG_HTTP_CERT_FILE | none | Path to the TLS certificate file if TLS is enabled. |
|
|
||||||
| http.key-file | OG_HTTP_KEY_FILE | none | Path to the TLS key file if TLS is enabled. |
|
|
||||||
| ssh.git-enabled | OG_SSH_GIT_ENABLED | `true` | Enable or disable git operations (clone, pull, push) via SSH. (`true` or `false`) |
|
| ssh.git-enabled | OG_SSH_GIT_ENABLED | `true` | Enable or disable git operations (clone, pull, push) via SSH. (`true` or `false`) |
|
||||||
| ssh.host | OG_SSH_HOST | `0.0.0.0` | The host on which the SSH server should bind. |
|
| ssh.host | OG_SSH_HOST | `0.0.0.0` | The host on which the SSH server should bind. |
|
||||||
| ssh.port | OG_SSH_PORT | `2222` | The port on which the SSH server should listen. |
|
| ssh.port | OG_SSH_PORT | `2222` | The port on which the SSH server should listen. |
|
||||||
|
@ -26,15 +26,6 @@ http.port: 6157
|
|||||||
# Enable or disable git operations (clone, pull, push) via HTTP (either `true` or `false`). Default: true
|
# Enable or disable git operations (clone, pull, push) via HTTP (either `true` or `false`). Default: true
|
||||||
http.git-enabled: true
|
http.git-enabled: true
|
||||||
|
|
||||||
# Enable or disable TLS (either `true` or `false`). Default: false
|
|
||||||
http.tls-enabled: false
|
|
||||||
|
|
||||||
# Path to the TLS certificate file if TLS is enabled
|
|
||||||
http.cert-file:
|
|
||||||
|
|
||||||
# Path to the TLS key file if TLS is enabled
|
|
||||||
http.key-file:
|
|
||||||
|
|
||||||
# SSH built-in server configuration
|
# SSH built-in server configuration
|
||||||
# Note: it is not using the SSH daemon from your machine (yet)
|
# Note: it is not using the SSH daemon from your machine (yet)
|
||||||
|
|
||||||
|
@ -29,12 +29,9 @@ type config struct {
|
|||||||
|
|
||||||
SqliteJournalMode string `yaml:"sqlite.journal-mode" env:"OG_SQLITE_JOURNAL_MODE"`
|
SqliteJournalMode string `yaml:"sqlite.journal-mode" env:"OG_SQLITE_JOURNAL_MODE"`
|
||||||
|
|
||||||
HttpHost string `yaml:"http.host" env:"OG_HTTP_HOST"`
|
HttpHost string `yaml:"http.host" env:"OG_HTTP_HOST"`
|
||||||
HttpPort string `yaml:"http.port" env:"OG_HTTP_PORT"`
|
HttpPort string `yaml:"http.port" env:"OG_HTTP_PORT"`
|
||||||
HttpGit bool `yaml:"http.git-enabled" env:"OG_HTTP_GIT_ENABLED"`
|
HttpGit bool `yaml:"http.git-enabled" env:"OG_HTTP_GIT_ENABLED"`
|
||||||
HttpTLSEnabled bool `yaml:"http.tls-enabled" env:"OG_HTTP_TLS_ENABLED"`
|
|
||||||
HttpCertFile string `yaml:"http.cert-file" env:"OG_HTTP_CERT_FILE"`
|
|
||||||
HttpKeyFile string `yaml:"http.key-file" env:"OG_HTTP_KEY_FILE"`
|
|
||||||
|
|
||||||
SshGit bool `yaml:"ssh.git-enabled" env:"OG_SSH_GIT_ENABLED"`
|
SshGit bool `yaml:"ssh.git-enabled" env:"OG_SSH_GIT_ENABLED"`
|
||||||
SshHost string `yaml:"ssh.host" env:"OG_SSH_HOST"`
|
SshHost string `yaml:"ssh.host" env:"OG_SSH_HOST"`
|
||||||
@ -66,7 +63,6 @@ func configWithDefaults() (*config, error) {
|
|||||||
c.HttpHost = "0.0.0.0"
|
c.HttpHost = "0.0.0.0"
|
||||||
c.HttpPort = "6157"
|
c.HttpPort = "6157"
|
||||||
c.HttpGit = true
|
c.HttpGit = true
|
||||||
c.HttpTLSEnabled = false
|
|
||||||
|
|
||||||
c.SshGit = true
|
c.SshGit = true
|
||||||
c.SshHost = "0.0.0.0"
|
c.SshHost = "0.0.0.0"
|
||||||
|
Loading…
Reference in New Issue
Block a user