-
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.
Signed-off-by: Teakowa <27560638+Teakowa@users.noreply.github.com>
- Loading branch information
0 parents
commit 99275a6
Showing
7 changed files
with
116 additions
and
0 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,53 @@ | ||
upstream cdn { | ||
server cdn.gallerix.asia:443; | ||
} | ||
|
||
upstream v { | ||
server v.gallerix.org:443; | ||
} | ||
|
||
|
||
server { | ||
listen 80 default_server; | ||
server_name cdn.14159.mov; | ||
|
||
if ($request_method !~ ^(GET|HEAD)$ ) { | ||
return 405; | ||
} | ||
|
||
location = / { | ||
return 418; | ||
} | ||
|
||
location ^~ /status { | ||
access_log off; | ||
log_not_found off; | ||
default_type application/json; | ||
if ($http_user_agent ~* (UptimeRobot)){ | ||
return 200 '{"status": "success", "messages": "status check."}'; | ||
} | ||
return 444; | ||
} | ||
|
||
location = /favicon.ico { access_log off; log_not_found off; } | ||
location = /robots.txt { access_log off; log_not_found off; } | ||
|
||
location ^~ /x/ { | ||
proxy_pass_header Server; | ||
include /etc/nginx/proxy-header.conf; | ||
proxy_pass https://cdn; | ||
expires max; | ||
} | ||
|
||
location ^~ /B/ { | ||
proxy_pass_header Server; | ||
include /etc/nginx/proxy-header.conf; | ||
proxy_pass https://v; | ||
expires max; | ||
} | ||
|
||
location ~ /\.(?!well-known).* { | ||
log_not_found off; | ||
deny all; | ||
} | ||
} |
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,7 @@ | ||
proxy_set_header Accept-Encoding ''; | ||
proxy_redirect off; | ||
proxy_set_header Host $http_host; | ||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
proxy_set_header X-Forwarded-Proto https; | ||
proxy_set_header X-Real-IP $remote_addr; | ||
proxy_set_header X-Scheme $scheme; |
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,5 @@ | ||
.git | ||
.github | ||
Dockerfile* | ||
*.md | ||
LICENSE |
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,14 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "weekly" | ||
open-pull-requests-limit : 10 | ||
# Enable version updates for npm | ||
- package-ecosystem: 'docker' | ||
# Look for `package.json` and `lock` files in the `root` directory | ||
directory: '/' | ||
# Check the npm registry for updates every day (weekdays) | ||
schedule: | ||
interval: 'weekly' |
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,11 @@ | ||
name: Merge PRs | ||
on: | ||
pull_request: | ||
|
||
jobs: | ||
automerge: | ||
name: Auto Merge | ||
if: ${{ github.actor == 'dependabot[bot]' }} | ||
uses: bytefloat/workflows/.github/workflows/dependabot-auto-merge.yml@main | ||
secrets: | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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 @@ | ||
name: Release Images | ||
|
||
on: | ||
schedule: | ||
- cron: "0 8 * * *" # everyday at 8am UTC | ||
release: | ||
types: [published] | ||
push: | ||
branches: | ||
- main | ||
tags: | ||
- "v*" | ||
workflow_dispatch: | ||
|
||
jobs: | ||
registry: | ||
name: Build & Push | ||
uses: bytefloat/workflows/.github/workflows/docker-build.yml@main | ||
with: | ||
custom-tag: 'fspnetwork/nginx:latest' | ||
secrets: | ||
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }} | ||
DOCKERHUB_PASSWORD: ${{ secrets.DOCKERHUB_PASSWORD }} |
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,3 @@ | ||
FROM nginx:latest | ||
COPY .docker/proxy-header.conf /etc/nginx/proxy-header.conf | ||
COPY .docker/nginx.conf /etc/nginx/conf.d/default.conf |