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

Don't declare VIRTUAL_HOST as an empty string in Dockerfile #1304

Merged
merged 1 commit into from
Jan 23, 2023

Conversation

PromoFaux
Copy link
Member

What does this PR aim to accomplish?:

Possibly causes issues with other containers (though, personally I do not see how - but then, I'm not a Docker expert), see nginx-proxy/nginx-proxy#1674 (reply in thread) for a discussion that may make more sense to you, dear reader.

This change set keeps things functionally the same as they were before - just syntactically different. 15-pihole-admin-redirect-docker.conf now created on the fly rather than forcing the env var to exist system-wide (if it doesn't exist, lighttpd falls over)


By submitting this pull request, I confirm the following:

  1. I have read and understood the contributors guide, as well as this entire template. I understand which branch to base my commits and Pull Requests against.
  2. I have commented my proposed changes within the code and I have tested my changes.
  3. I am willing to help maintain this change if there are issues with it later.
  4. It is compatible with the EUPL 1.2 license
  5. I have squashed any insignificant commits. (git rebase)

  • I have read the above and my PR is ready for review. Check this box to confirm

…cally create this file on container start.

This gets rid of what was probably a hack to have the VIRTUAL_HOST declared as an empty string in the Dockerfile (lighttpd would not start if env.VIRTUAL_HOST was not set

Signed-off-by: Adam Warner <me@adamwarner.co.uk>
@sonarcloud
Copy link

sonarcloud bot commented Jan 23, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@PromoFaux PromoFaux merged commit 3a12526 into dev Jan 23, 2023
@PromoFaux PromoFaux deleted the virtualhost branch January 23, 2023 23:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant