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 Openresty as an webserver option #118

Merged
merged 134 commits into from
Jan 27, 2024
Merged

Conversation

TafkaMax
Copy link
Contributor

I have successfully created and made Openresty use Modsecurity. Because Openresty is based on Nginx it was doable.

There are some nuances.


Because the official Openresty Docker Image is created differently than the Nginx one, then there is no usage of 'nginx' user. Openresty does not use 'docker-entrypoint' logic, so I copied that logic from the original Nginx repository.

If you have any more questions I am happy to answer them.

I also added a simple gitlab-ci.yml file, because that is what I use with the integrated gitlab registry, but it might be too specific to add.

Currently I only added the Alpine build option and only for linux/amd64.

@fzipi
Copy link
Member

fzipi commented Jan 4, 2024

Can you resolve the conversation for the things addressed already? Thanks! Looking better :)

@fzipi fzipi requested a review from theseion January 23, 2024 13:07
@fzipi fzipi added the enhancement New feature or request label Jan 23, 2024
openresty/Dockerfile-alpine Outdated Show resolved Hide resolved
openresty/Dockerfile-alpine Outdated Show resolved Hide resolved
openresty/Dockerfile-alpine Outdated Show resolved Hide resolved
openresty/Dockerfile-alpine Outdated Show resolved Hide resolved
openresty/Dockerfile-alpine Show resolved Hide resolved
openresty/templates/.gitkeep Outdated Show resolved Hide resolved
@theseion
Copy link
Contributor

Sorry for the long wait @TafkaMax. I think you done a good job and if you are taking responsibility of the image then I don't see why we shouldn't offer it as part of the default build.

@TafkaMax
Copy link
Contributor Author

Updated the image to version 1.25.3.

Now openresty can use pcre2 again, which is nice.

Tested in my environment and build successfully and works aswell.

README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
openresty/Dockerfile-alpine Outdated Show resolved Hide resolved
openresty/Dockerfile-alpine Outdated Show resolved Hide resolved
TafkaMax and others added 6 commits January 27, 2024 16:24
Co-authored-by: Max Leske <[email protected]>
Co-authored-by: Max Leske <[email protected]>
Co-authored-by: Max Leske <[email protected]>
Co-authored-by: Max Leske <[email protected]>
@theseion
Copy link
Contributor

Awesome, thank you!

@theseion theseion merged commit a4396f4 into coreruleset:develop Jan 27, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants