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 all-in-one minimal nginx config #589

Merged
merged 1 commit into from
Jan 15, 2025
Merged

Conversation

JAORMX
Copy link
Contributor

@JAORMX JAORMX commented Jan 15, 2025

The nginx configuration uses a lot of defaults that work well in
server-like environments. However, this is not optimized for a local
dev-environment or single-container as codegate is meant to run.

The nginx server spawns several processes which mostly remain idle. This
is wasteful and it is taking over resources that could be used for
something else. The intention of this new configuration is to minimize
footprint.

Signed-off-by: Juan Antonio Osorio [email protected]

The nginx configuration uses a lot of defaults that work well in
server-like environments. However, this is not optimized for a local
dev-environment or single-container as codegate is meant to run.

The nginx server spawns several processes which mostly remain idle. This
is wasteful and it is taking over resources that could be used for
something else. The intention of this new configuration is to minimize
footprint.

Signed-off-by: Juan Antonio Osorio <[email protected]>
@@ -78,7 +78,7 @@ RUN chown -R codegate /var/lib/nginx && \
chown -R codegate /var/log/nginx && \
chown -R codegate /run

COPY nginx.conf /etc/nginx/conf.d/default.conf
COPY nginx.conf /etc/nginx/nginx.conf
Copy link
Contributor

Choose a reason for hiding this comment

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

is there any system-default nginx.conf? Which of them takes precedence? Just making sure we won't block ourselves from receiving changes to defaults in the future

Copy link
Contributor Author

Choose a reason for hiding this comment

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

right, that's exactly what I'm overwriting here. We no longer take into account the default nginx.conf and instead write our own.

@JAORMX JAORMX merged commit 8d4aec8 into stacklok:main Jan 15, 2025
2 checks passed
@JAORMX JAORMX deleted the minimal-nginx branch January 15, 2025 09:19
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.

2 participants