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

Add additional nginx configuration #1976

Closed
2 tasks
galethil opened this issue Sep 17, 2024 · 0 comments · Fixed by #1978
Closed
2 tasks

Add additional nginx configuration #1976

galethil opened this issue Sep 17, 2024 · 0 comments · Fixed by #1978
Assignees
Labels
feature Indicates a new feature implementation

Comments

@galethil
Copy link
Collaborator

  • The feature was discussed in discussions of this repository.
  • I have searched the issues of this repository and believe that this is not a duplicate.

Description 💡

With some deployments additional configuration is required. Add "wildcard" variables for each servise that will allow to inject additional configuration to nginx server for each service.

if [ "$REACT_APP_EXPORT_SERVICE_ENABLED" = true ]; then
  echo "Excel export has been enabled"
  echo "$export_protocol://$export_host:$export_port/"
  sed -i -e "/# pathToExcelExport/i\\
  proxy_pass $export_protocol://$export_host:$export_port/;" /etc/nginx/conf.d/default.conf
fi

change with something similar to

if [ "$REACT_APP_EXPORT_SERVICE_ENABLED" = true ]; then
  echo "Excel export has been enabled"
  echo "$export_protocol://$export_host:$export_port/"
  sed -i -e "/# pathToExcelExport/i\\
  $additional_export_headers  # <<<<======
  proxy_pass $export_protocol://$export_host:$export_port/;" /etc/nginx/conf.d/default.conf
fi
@galethil galethil added the feature Indicates a new feature implementation label Sep 17, 2024
@galethil galethil added this to the Trubudget 2.15.0 milestone Sep 17, 2024
@galethil galethil self-assigned this Sep 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Indicates a new feature implementation
Projects
Development

Successfully merging a pull request may close this issue.

1 participant