http3 but now in docker for my invidious instance
Some checks failed
CI / build (push) Failing after 18s
Some checks failed
CI / build (push) Failing after 18s
This commit is contained in:
parent
38aaa342dc
commit
9d1a68aa0b
3 changed files with 76 additions and 0 deletions
35
.forgejo/workflows/ci.yml
Normal file
35
.forgejo/workflows/ci.yml
Normal file
|
@ -0,0 +1,35 @@
|
|||
name: 'CI'
|
||||
|
||||
on:
|
||||
# workflow_dispatch:
|
||||
# inputs: {}
|
||||
# schedule:
|
||||
# - cron: '0 7 * * 0'
|
||||
push:
|
||||
branches: ["*"]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: runner
|
||||
|
||||
steps:
|
||||
- uses: https://code.forgejo.org/actions/checkout@v2
|
||||
|
||||
- uses: https://code.forgejo.org/docker/setup-buildx-action@v3
|
||||
name: Setup Docker BuildX system
|
||||
|
||||
- name: Login to Docker Container Registry
|
||||
uses: https://code.forgejo.org/docker/login-action@v3.1.0
|
||||
with:
|
||||
registry: git.nadeko.net
|
||||
username: ${{ secrets.USERNAME }}
|
||||
password: ${{ secrets.TOKEN }}
|
||||
|
||||
- uses: https://code.forgejo.org/docker/build-push-action@v5
|
||||
name: Build images
|
||||
with:
|
||||
context: .
|
||||
tags: git.nadeko.net/fijxu/http3-proxy:latest
|
||||
platforms: linux/amd64
|
||||
push: true
|
||||
|
22
docker-compose.yml
Normal file
22
docker-compose.yml
Normal file
|
@ -0,0 +1,22 @@
|
|||
# Docker compose file for http3-proxy used in Invidious
|
||||
|
||||
services:
|
||||
|
||||
http3-proxy:
|
||||
image: git.nadeko.net/fijxu/http3-proxy:latest
|
||||
restart: unless-stopped
|
||||
deploy:
|
||||
replicas: 6
|
||||
environment:
|
||||
DISABLE_WEBP: 1
|
||||
|
||||
http3-proxy-nginx:
|
||||
image: nginx:latest
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- ./nginx.conf:/etc/nginx/nginx.conf:ro
|
||||
depends_on:
|
||||
- http3-proxy
|
||||
ports:
|
||||
- "127.0.0.1:10012:3000"
|
||||
|
19
nginx.conf
Normal file
19
nginx.conf
Normal file
|
@ -0,0 +1,19 @@
|
|||
user www-data;
|
||||
events {
|
||||
worker_connections 1024;
|
||||
}
|
||||
http {
|
||||
server {
|
||||
listen 3000;
|
||||
listen [::]:3000;
|
||||
access_log off;
|
||||
location / {
|
||||
resolver 127.0.0.11;
|
||||
set $backend "http3-proxy";
|
||||
proxy_pass http://$backend:3000;
|
||||
proxy_http_version 1.1; # to keep alive
|
||||
proxy_set_header Connection ""; # to keep alive
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in a new issue