You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Why: This suggestion enhances portability and follows shell scripting conventions, which is important for maintainability.
8
Use a more descriptive comparison value for improved readability
Consider using a more descriptive variable name instead of '0' for the NGINX_SUBFOLDER comparison. For example, use an empty string or 'false' to improve code readability.
Possible Configuration Error:
The change in docker-entrypoint.sh to include NGINX_SUBFOLDER and NGINX_SUBFOLDER_ESCAPED variables in the envsubst command without conditional checks might introduce issues if NGINX_SUBFOLDER is not set. Ensure that this change does not affect configurations where subfolders are not used.
Redundant Code Removal:
The removal of the specific envsubst command for subfolder configurations in docker-entrypoint.sh and the subsequent removal of most of the subfolder.conf content might simplify the configuration process but ensure that all necessary configurations are still applied correctly. It's important to verify that the new method of injecting the subfolder configuration directly into default.conf does not miss any critical settings.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR Type
Enhancement
Description
docker-entrypoint.sh
:templates/subfolder.conf
by removing redundant contenttemplates/default.conf
Changes walkthrough 📝
docker-entrypoint.sh
Streamline subfolder configuration injection
docker-entrypoint.sh
subfolder.conf
Simplify subfolder configuration
templates/subfolder.conf
location block
default.conf
Add subfolder configuration placeholder
templates/default.conf