Skip to content

Commit

Permalink
remove ssl keys from config json and fixed config typo
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrol3001 committed Nov 13, 2023
1 parent 2a9a951 commit 2f5b618
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
4 changes: 1 addition & 3 deletions n8n/rootfs/etc/n8n/config.gtpl
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
{
"protocol": {{ .protocol }}
"protocol": {{ .protocol }},
"host": "localhost",
"port": {{ .port }},
"editorBaseUrl": "{{ .public_url }}",
"ssl_key": {{ .ssl_key }},
"ssl_cert": {{ .ssl_cert }},
"database": {
"type": "{{ .db_type }}",
"mysqldb": {
Expand Down
2 changes: 0 additions & 2 deletions n8n/rootfs/etc/s6-overlay/s6-rc.d/init-n8n/run
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ bashio::var.json \
protocol "$($(bashio::config 'ssl') ? 'https' : 'http')" \
host "$(bashio::addon.hostname)" \
port "^$(bashio::addon.port 80)" \
ssl_cert "$(cat /ssl/$(bashio::config 'certfile'))" \
ssl_key "$(cat /ssl/$(bashio::config 'keyfile'))" \
db_type "$(bashio::config 'db_type')" \
db_name "$(bashio::config 'db_name')" \
db_host "$(bashio::config 'db_host')" \
Expand Down
3 changes: 3 additions & 0 deletions n8n/rootfs/etc/s6-overlay/s6-rc.d/n8n/run
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,7 @@ bashio::log.info "Starting N8N..."
export N8N_USER_FOLDER="/config/n8n/data"
export N8N_CONFIG_FILES=/config/n8n/config.json

export N8N_SSL_CERT="$(cat /ssl/$(bashio::config 'certfile'))"
export N8N_SSL_KEY="$(cat /ssl/$(bashio::config 'keyfile'))"

exec n8n start

0 comments on commit 2f5b618

Please sign in to comment.