1
0
Fork 0
mirror of https://codeberg.org/ashley/poke.git synced 2024-11-17 00:54:39 -05:00

revert original config file and update explanation

This commit is contained in:
wait-what 2024-04-23 00:45:59 +03:00
parent 74c7e7d051
commit 16f79f9ff2
3 changed files with 42 additions and 12 deletions

View file

@ -1,11 +1,11 @@
{ {
"tubeApi": "http://lighttube:80/api", "tubeApi": "https://inner-api.poketube.fun/api/",
"invapi": "http://invidious:3000/api/v1", "invapi": "https://invid-api.poketube.fun/api/v1",
"dislikes": "https://returnyoutubedislikeapi.com/votes?videoId=", "dislikes": "https://returnyoutubedislikeapi.com/votes?videoId=",
"invchannel": "http://invidious:3000/api/v1", "invchannel": "https://invid-api.poketube.fun/api/v1",
"p_url": "http://p.poketube.test", "p_url": "https://p.poketube.fun",
"media_proxy": "http://image-proxy.poketube.test", "media_proxy": "https://image-proxy.poketube.fun",
"videourl": "http://eu-proxy.poketube.test", "videourl": "https://eu-proxy.poketube.fun",
"email_main_url": "https://email-server.poketube.fun", "email_main_url": "https://email-server.poketube.fun",
"mastodon_client_url": "https://fediverse.poketube.fun", "mastodon_client_url": "https://fediverse.poketube.fun",
"libreoffice_online_url": "https://office.poketube.fun", "libreoffice_online_url": "https://office.poketube.fun",
@ -14,4 +14,4 @@
"proxylocation": "USA", "proxylocation": "USA",
"t_url": "https://t.poketube.fun/", "t_url": "https://t.poketube.fun/",
"server_port": "6003" "server_port": "6003"
} }

View file

@ -2,10 +2,23 @@
# 1. Verify you have docker and docker-compose # 1. Verify you have docker and docker-compose
# 2. Make sure this repository is cloned recursively (check if the `pokevidious` folder has stuff in it) # 2. Make sure this repository is cloned recursively (check if the `pokevidious` folder has stuff in it)
# 3. Adjust domains in `docker/Caddyfile` and `config.json` # 3. Optionally replace `build` with `image` in some services to save time on building
# DO NOT touch tubeApi, invapi, invchannel, videourl in `config.json` unless you know what you are doing # 4. Proceed either to Section A or Section B
# 4. Optionally replace `build` with `image` in some services to save time on building
# 5. Run `docker-compose up -d` or `docker compose up -d` (notice the dash) # Section A : Local development
# 1. Add this to your hosts file /etc/hosts (Linux) or C:\Windows\System32\drivers\etc\hosts (Windows)
#
# 127.0.0.1 poketube.test image-proxy.poketube.test eu-proxy.poketube.test p.poketube.test
#
# 2. Run `docker-compose up -d` or `docker compose up -d` (notice the dash)
# 3. Visit `http://poketube.test` in your browser
# Section B : Production
# 3. Adjust domains in `docker/Caddyfile` and `docker/config.json`
# 3.1 DO NOT touch tubeApi, invapi, invchannel, videourl in `docker/config.json` unless you know what you are doing
# 3.2 As for the others, make sure they're all https in both files
# 4. Run `docker-compose up -d` or `docker compose up -d` (notice the dash)
# 5. Visit your domain in your browser
services: services:
poketube: # port 6003 poketube: # port 6003
@ -19,7 +32,7 @@ services:
- january - january
restart: unless-stopped restart: unless-stopped
volumes: volumes:
- ./config.json:/poketube/config.json:ro - ./docker/poke.json:/poketube/config.json:ro
# lighttube - tubeApi # lighttube - tubeApi
lighttube: # port 80 lighttube: # port 80

17
docker/poke.json Normal file
View file

@ -0,0 +1,17 @@
{
"tubeApi": "http://lighttube:80/api",
"invapi": "http://invidious:3000/api/v1",
"dislikes": "https://returnyoutubedislikeapi.com/votes?videoId=",
"invchannel": "http://invidious:3000/api/v1",
"p_url": "http://p.poketube.test",
"media_proxy": "http://image-proxy.poketube.test",
"videourl": "http://eu-proxy.poketube.test",
"email_main_url": "https://email-server.poketube.fun",
"mastodon_client_url": "https://fediverse.poketube.fun",
"libreoffice_online_url": "https://office.poketube.fun",
"cacher_max_age": "864000",
"enablealwayshttps": false,
"proxylocation": "USA",
"t_url": "https://t.poketube.fun/",
"server_port": "6003"
}