Skip to content

domains used in proxies aren't added to LAGOON_ROUTES #14

@tobybellwood

Description

@tobybellwood

If I specify a route in a proxy, it doesn't flow through to the LAGOON_ROUTES variable inside the container, so doesn't appear in the trusted (and error with The provided host name is not valid for this server.

i.e. given the lando.yml

name: drupal8-example-advanced
recipe: lagoon
config:
  flavor: drupal
  build:
    - composer install
proxy:
  nginx:
    - myapp.lndo.site:8080

we get

Here are some vitals:

 NAME          drupal8-example-advanced                                           
 LOCATION      /home/tobybellwood/sites/drupal-example-simple                     
 SERVICES      cli, nginx, php, mariadb, redis, solr, varnish, mailhog, lagooncli 
 NGINX URLS    http://localhost:49158                                             
               http://myapp.lndo.site/                                            
               https://myapp.lndo.site/                                           
 SOLR URLS     http://localhost:49154                                             
 VARNISH URLS  http://localhost:49159                                             
               http://varnish.drupal8-example-advanced.lndo.site/                 
 MAILHOG URLS  http://localhost:49156                                             
               http://inbox.drupal8-example-advanced.lndo.site/                   

tobybellwood@pop-os:~/sites/drupal-example-simple  $ lando ssh
[drupal8-example-advanced]cli-drupal:/app$ printenv | grep ROUTES
LAGOON_ROUTES=cli,nginx,php,mariadb,redis,solr,varnish,drupal8-example-advanced.lndo.site,localhost

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions