Skip to content

Conversation

jorggr
Copy link

@jorggr jorggr commented Sep 29, 2025

Changes

  • Replaced EOF with 'EOF' in heredoc to avoid unwanted shell variable expansion.
  • Removed unnecessary escaping (\$variable$variable) in nginx configuration.
  • Ensures the generated config aligns with nginx syntax.

Motivation

Using unquoted EOF caused the shell to expand variables like $host and $uri before they reached the config file, breaking nginx behavior.
Switching to 'EOF' passes the content literally, allowing nginx to interpret its variables correctly without manual escaping.

Impact

  • The configuration is now cleaner and more readable.
  • Prevents potential deployment issues caused by incorrect variable expansion.

…nx config

- Replaced EOF with 'EOF' to avoid shell variable expansion
- Removed escaped variables ($var) and kept them as  for correct nginx syntax
- Ensures the generated config matches expected nginx behavior
@jorggr jorggr changed the title fix(config): corrección en configuración de Nginx (heredoc y variables) fix(config): nginx heredoc and variable escaping correction Sep 29, 2025
@santiagolizardo santiagolizardo self-requested a review September 30, 2025 21:33
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