diff --git a/.env.dev b/.env.dev index e430174d..7cfaecd8 100644 --- a/.env.dev +++ b/.env.dev @@ -5,6 +5,15 @@ APP_KEY=someRandomStringWith32Characters APP_DEBUG=true APP_DEMO=false +# The URL under which LinkAce is accessible, e.g. https://links.example.com +APP_URL=http://localhost + +## Trusted Proxies and Hosts +# Set to the IP of your reverse proxy if running behind one (e.g. nginx, Traefik). +# Use a comma-separated list for multiple proxies: 192.168.1.1,10.0.0.1 +# Use * to trust the immediate upstream connection (any single reverse proxy). +TRUSTED_PROXIES=* + ## Database configuration DB_CONNECTION=mysql DB_HOST=db diff --git a/.env.docker.production b/.env.docker.production index 847ac5b2..0f97d927 100644 --- a/.env.docker.production +++ b/.env.docker.production @@ -3,6 +3,16 @@ # The app key is generated later, please leave it like that APP_KEY=someRandomStringWith32Characters +# The URL under which LinkAce is accessible, e.g. https://links.example.com +# Used when generating links in emails and other notifications +APP_URL=http://localhost + +## Trusted Proxies and Hosts +# Set to the IP of your reverse proxy if running behind one (e.g. nginx, Traefik). +# Use a comma-separated list for multiple proxies: 192.168.1.1,10.0.0.1 +# Use * to trust the immediate upstream connection (any single reverse proxy). +TRUSTED_PROXIES=* + ## Configuration of the database connection # Set the database driver (mysql, pgsql, sqlsrv, sqlite) DB_CONNECTION=mysql diff --git a/.env.example b/.env.example index a633b58c..788c4821 100644 --- a/.env.example +++ b/.env.example @@ -12,8 +12,7 @@ APP_URL=http://localhost # Set to the IP of your reverse proxy if running behind one (e.g. nginx, Traefik). # Use a comma-separated list for multiple proxies: 192.168.1.1,10.0.0.1 # Use * to trust the immediate upstream connection (any single reverse proxy). -# Leave empty if LinkAce is accessed directly without a reverse proxy. -TRUSTED_PROXIES= +TRUSTED_PROXIES=* ## Configuration of the database connection ## Attention: Those settings are configured during the web setup, please do not modify them now. diff --git a/.env.sqlite.production b/.env.sqlite.production index 5925525b..0548b246 100644 --- a/.env.sqlite.production +++ b/.env.sqlite.production @@ -4,6 +4,16 @@ # The app key is generated later, please leave it like that APP_KEY=someRandomStringWith32Characters +# The URL under which LinkAce is accessible, e.g. https://links.example.com +# Used when generating links in emails and other notifications +APP_URL=http://localhost + +## Trusted Proxies and Hosts +# Set to the IP of your reverse proxy if running behind one (e.g. nginx, Traefik). +# Use a comma-separated list for multiple proxies: 192.168.1.1,10.0.0.1 +# Use * to trust the immediate upstream connection (any single reverse proxy). +TRUSTED_PROXIES=* + ## Configuration of the database connection # Set the database driver (mysql, pgsql, sqlsrv, sqlite) DB_CONNECTION=sqlite