Skip to content

Conversation

@Jasonej
Copy link
Contributor

@Jasonej Jasonej commented Apr 10, 2025

This loads in the .env from where hop proxy is run if it exists. This allows leveraging .env files to do things like make an env to control your desired proxy URL in a single spot.

.env

LOCAL_HOST=projectname.docker
PROXY_HOST=someproxy.example.com

docker-compose.override.yml

services:
  xxx-code:
    environment:
      - APP_URL=http${PROXY_HOST:+s}://${PROXY_HOST:-$LOCAL_HOST}
  xxx-web:
    environment:
      - VIRTUAL_HOST="${LOCAL_HOST},${PROXY_HOST:-}"

@Jasonej Jasonej requested a review from Copilot April 10, 2025 20:57
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

@iBotPeaches iBotPeaches merged commit 1c16ca2 into master Apr 16, 2025
9 checks passed
@iBotPeaches iBotPeaches deleted the hop-proxy-env branch April 16, 2025 18:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

8 participants