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

Use official nginx repository to install nginx #3064

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

kkimurak
Copy link
Contributor

This PR implements a part of #3056 (comment)

  1. Jammy just provides the package nginx/jammy-updates,jammy-security 1.18.0-6ubuntu14.5 amd64 which might be enough to update this project very soon. However, for future updates we should keep in mind that the webserver is an essential part of the image.

Applying these patches today (2025-01-24) to v17.8.1 will change the installed nginx version from 1.18.0-6ubuntu14.5 to 1.26.2-1~jammy.

Set a higher priority so that it is used in preference to the
nginx packages provided by the ubuntu repository
Directories such as /etc/nginx/sites-{enabled, available and similar}
are not available for nginx package comes from official nginx repository.

Ubuntu source may create this directory
refer1 : ubuntu distributes nginx with a file "nginx-common.dirs"
which lists these directories
https://git.launchpad.net/ubuntu/+source/nginx/tree/debian/nginx-common.dirs?h=ubuntu/jammy-updates

By default, nginx recognizes configuration files in /etc/nginx/conf.d/
Just change the destination path to install nginx configuration files
it reports error as it is duplicated
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