mirror of
https://github.com/TeamPiped/documentation.git
synced 2024-08-14 23:50:09 +00:00
Compare commits
5 commits
0ce73f74e0
...
ba80336585
Author | SHA1 | Date | |
---|---|---|---|
|
ba80336585 | ||
|
fed7be7ddb | ||
|
e715fe5eb3 | ||
|
e88d4bac8d | ||
|
4eb258fba2 |
2 changed files with 7 additions and 13 deletions
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
|
@ -13,7 +13,7 @@ jobs:
|
||||||
with:
|
with:
|
||||||
submodules: true
|
submodules: true
|
||||||
- name: Setup Hugo
|
- name: Setup Hugo
|
||||||
uses: peaceiris/actions-hugo@v2
|
uses: peaceiris/actions-hugo@v3
|
||||||
with:
|
with:
|
||||||
extended: true
|
extended: true
|
||||||
- run: hugo --minify
|
- run: hugo --minify
|
||||||
|
|
|
@ -107,7 +107,7 @@ Consider joining the federation protocol at https://github.com/TeamPiped/piped-f
|
||||||
|
|
||||||
Run `docker run --rm -v /var/run/docker.sock:/var/run/docker.sock containrrr/watchtower --run-once piped-frontend piped-backend piped-proxy varnish nginx caddy postgres watchtower`
|
Run `docker run --rm -v /var/run/docker.sock:/var/run/docker.sock containrrr/watchtower --run-once piped-frontend piped-backend piped-proxy varnish nginx caddy postgres watchtower`
|
||||||
|
|
||||||
## Docker Compose with Nginx
|
## Docker Compose with system Nginx
|
||||||
|
|
||||||
**WARNING**: This setup is not recommended, as it is difficult to setup and maintain.
|
**WARNING**: This setup is not recommended, as it is difficult to setup and maintain.
|
||||||
|
|
||||||
|
@ -153,7 +153,7 @@ Now, you have the user and group id - `33:33`.
|
||||||
Now, run the proxy with the following command, while replacing the user parameter with what you just found:
|
Now, run the proxy with the following command, while replacing the user parameter with what you just found:
|
||||||
|
|
||||||
```
|
```
|
||||||
docker run -d --network=host -v "/var/run/ytproxy/:/app/socket" --user 33:33 --restart unless-stopped 1337kavin/ytproxy:latest
|
docker run -d --network=host -v "/var/run/ytproxy/:/app/socket" --user 33:33 --restart unless-stopped 1337kavin/piped-proxy:latest
|
||||||
```
|
```
|
||||||
|
|
||||||
You can now use watchtower to enable automatic container updates (optional):
|
You can now use watchtower to enable automatic container updates (optional):
|
||||||
|
@ -170,14 +170,8 @@ Now, create an nginx snippet like so:
|
||||||
`/etc/nginx/snippets/ytproxy.conf`
|
`/etc/nginx/snippets/ytproxy.conf`
|
||||||
|
|
||||||
```
|
```
|
||||||
add_header Access-Control-Allow-Origin *;
|
|
||||||
add_header Access-Control-Allow-Headers *;
|
|
||||||
if ($request_method = OPTIONS ) {
|
|
||||||
return 200;
|
|
||||||
}
|
|
||||||
proxy_buffering on;
|
proxy_buffering on;
|
||||||
proxy_set_header Host $arg_host;
|
proxy_buffers 1024 16k;
|
||||||
proxy_ssl_server_name on;
|
|
||||||
proxy_set_header X-Forwarded-For "";
|
proxy_set_header X-Forwarded-For "";
|
||||||
proxy_set_header CF-Connecting-IP "";
|
proxy_set_header CF-Connecting-IP "";
|
||||||
proxy_hide_header "alt-svc";
|
proxy_hide_header "alt-svc";
|
||||||
|
@ -186,14 +180,14 @@ sendfile_max_chunk 512k;
|
||||||
tcp_nopush on;
|
tcp_nopush on;
|
||||||
aio threads=default;
|
aio threads=default;
|
||||||
aio_write on;
|
aio_write on;
|
||||||
directio 2m;
|
directio 16m;
|
||||||
proxy_hide_header Cache-Control;
|
proxy_hide_header Cache-Control;
|
||||||
proxy_hide_header etag;
|
proxy_hide_header etag;
|
||||||
proxy_http_version 1.1;
|
proxy_http_version 1.1;
|
||||||
proxy_set_header Connection keep-alive;
|
proxy_set_header Connection keep-alive;
|
||||||
proxy_max_temp_file_size 0;
|
proxy_max_temp_file_size 32m;
|
||||||
access_log off;
|
access_log off;
|
||||||
proxy_pass http://unix:/var/run/ytproxy/http-proxy.sock;
|
proxy_pass http://unix:/var/run/ytproxy/actix.sock;
|
||||||
```
|
```
|
||||||
|
|
||||||
Now, create a site configuration file:
|
Now, create a site configuration file:
|
||||||
|
|
Loading…
Reference in a new issue