mirror of
https://github.com/preparebuddyy/n8n-self-hosted.git
synced 2026-03-03 03:07:02 +00:00
Add DOMAIN_NAME to caddy
This commit is contained in:
4
.env
4
.env
@@ -1,11 +1,11 @@
|
||||
# The top level domain to serve from
|
||||
DOMAIN_NAME=example.com
|
||||
DOMAIN_NAME=your-domain.com
|
||||
|
||||
# The subdomain to serve from
|
||||
SUBDOMAIN=n8n
|
||||
|
||||
# DOMAIN_NAME and SUBDOMAIN combined decide where n8n will be reachable from
|
||||
# above example would result in: https://n8n.example.com
|
||||
# above example would result in: https://n8n.your-domain.com
|
||||
|
||||
# Optional timezone to set which gets used by Cron-Node by default
|
||||
# If not set New York time will be used
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
|
||||
# Main n8n service.
|
||||
|
||||
n8n.your-domain.com {
|
||||
n8n.{$DOMAIN_NAME} {
|
||||
# Prevents search engines from indexing this site.
|
||||
header X-Robots-Tag "noindex, nofollow"
|
||||
|
||||
@@ -30,6 +30,6 @@ n8n.your-domain.com {
|
||||
}
|
||||
|
||||
# Example for another service
|
||||
# another-service.your-domain.com {
|
||||
# another-service.{$DOMAIN_NAME} {
|
||||
# reverse_proxy another-service-container-name:8080
|
||||
# }
|
||||
@@ -70,6 +70,8 @@ services:
|
||||
- '80:80'
|
||||
- '443:443'
|
||||
- '443:443/udp'
|
||||
environment:
|
||||
DOMAIN_NAME: ${DOMAIN_NAME}
|
||||
volumes:
|
||||
- ./data/caddy:/data
|
||||
- ./config:/etc/caddy
|
||||
|
||||
Reference in New Issue
Block a user