-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
530ec8e
commit f9fdd56
Showing
6 changed files
with
153 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
.git/ | ||
.github/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: ci | ||
|
||
on: | ||
push: | ||
|
||
jobs: | ||
docker: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- | ||
name: Set up QEMU | ||
uses: docker/setup-qemu-action@v2 | ||
- | ||
name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v2 | ||
- | ||
name: Login to GitHub Container Registry | ||
uses: docker/login-action@v2 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.repository_owner }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
- | ||
name: Build and push | ||
uses: docker/build-push-action@v4 | ||
with: | ||
platforms: linux/amd64,linux/arm64 | ||
push: true | ||
tags: ghcr.io/deltablot/custom-http-nginx:latest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# this file can be included in a server block with: | ||
# include common.conf; | ||
|
||
# add a healthcheck endpoint | ||
# 204 is OK No Content | ||
location /healthcheck { | ||
access_log off; | ||
return 204; | ||
} | ||
# set cache for assets | ||
location ~* .(jpg|jpeg|png|gif|ico|css|js|ttf|webm|woff2)$ { | ||
expires 1M; | ||
} | ||
# deny access to hidden files/folders | ||
location ~ /\. { access_log off; log_not_found off; deny all; } | ||
|
||
# disable access log for assets | ||
location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ { | ||
access_log off; | ||
log_not_found off; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
daemon off; | ||
worker_processes auto; | ||
worker_rlimit_nofile 1024; | ||
|
||
events { | ||
worker_connections 1024; | ||
} | ||
|
||
http { | ||
include mime.types; | ||
server_tokens off; | ||
default_type application/octet-stream; | ||
sendfile on; | ||
# timeouts | ||
# see CIS benchmark nginx 2.4.4 | ||
client_body_timeout 10s; | ||
client_header_timeout 10s; | ||
send_timeout 10s; | ||
keepalive_timeout 10s; | ||
client_max_body_size 1; | ||
client_body_buffer_size 1; | ||
include conf.d/*.conf; | ||
} |