Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
tobybellwood opened this issue Nov 25, 2021 · 0 comments
Open

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

tobybellwood opened this issue Nov 25, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@tobybellwood
Copy link
Collaborator

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
@tobybellwood tobybellwood added the bug Something isn't working label Nov 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant