├── db ├── password.txt ├── Dockerfile └── initdb.sql ├── proxy ├── certs │ └── .gitkeep ├── Dockerfile └── conf ├── .gitignore ├── html └── index.html ├── README.md ├── docker-compose-http.yml ├── docker-compose.yml └── config └── config.example.yml /db/password.txt: -------------------------------------------------------------------------------- 1 | password -------------------------------------------------------------------------------- /proxy/certs/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /db/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM postgres 2 | COPY *.sql /docker-entrypoint-initdb.d/ 3 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | html/ 2 | db/password.txt 3 | proxy/certs/ 4 | config/config.yml 5 | -------------------------------------------------------------------------------- /proxy/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM nginx:alpine 2 | COPY conf /etc/nginx/conf.d/default.conf 3 | COPY certs /etc/nginx/certs 4 | -------------------------------------------------------------------------------- /html/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | biliroaming-go-server 5 | 6 | 7 |

代码: JasonKhew96/biliroaming-go-server

8 |

Source: JasonKhew96/biliroaming-go-server

9 | 10 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # biliroaming-go-server-docker 2 | [biliroaming-go-server](https://www.github.com/JasonKhew96/biliroaming-go-server) 的 [docker](https://hub.docker.com/r/jasonkhew96/biliroaming-go-server) 镜像 3 | 4 | ## 文件夹说明 5 | ``` 6 | config/ - 设置文件 7 | db/ - PostGreSQL 数据库密码 8 | html/ - 自定义首页 9 | proxy/ - nginx 证书配置 10 | ``` 11 | 12 | ## 使用方式 13 | ### 使用 nginx 14 | 1. 复制 `config/config.example.yml` --> `config/config.yml`,修改 设置 15 | 2. 修改 PostgreSQL 数据库密码 `db/password.txt` 16 | 3. 复制证书到 `proxy/certs/` 里,分别为 `site.crt` 和 `site.key` 17 | 4. 当前文件夹执行 `docker-compose -f docker-compose.yml up -d --build` 18 | ### 裸连 19 | 1. 复制 `config/config.example.yml` --> `config/config.yml`,修改 设置 20 | 2. 修改 PostgreSQL 数据库密码 `db/password.txt` 21 | 3. 当前文件夹执行 `docker-compose -f docker-compose-http.yml up -d --build` 22 | -------------------------------------------------------------------------------- /docker-compose-http.yml: -------------------------------------------------------------------------------- 1 | version: "3.8" 2 | services: 3 | backend: 4 | # 拉取的镜像 5 | image: jasonkhew96/biliroaming-go-server 6 | # 重启政策 7 | restart: always 8 | # 用于读取文件里的密码,先在下边声明此文件 9 | secrets: 10 | - db-password 11 | # 映射端口:容器端口 12 | ports: 13 | - 80:80 14 | # 依赖,以下容器必须先启动 15 | depends_on: 16 | - db 17 | # 映射 html 文件夹进去容器内 18 | volumes: 19 | - ./html/:/runner/html/ 20 | - ./config/:/runner/config/ 21 | # 连接容器以外的代理 22 | # 替换 "127.0.0.1" 或 "localhost" 23 | # 为 "host.docker.internal" 当作域名 24 | # extra_hosts: 25 | # - "host.docker.internal:host-gateway" 26 | db: 27 | build: db 28 | # 拉取的镜像 29 | # image: postgres 30 | # 重启政策 31 | restart: always 32 | # 用于读取文件里的密码,先在下边声明此文件 33 | secrets: 34 | - db-password 35 | # 存储 36 | volumes: 37 | - db-data:/var/lib/postgresql/data 38 | # 环境变量,设置 secrets 后,文件会映射到 "/run/secrets/[filename]" 39 | environment: 40 | - POSTGRES_DB=postgres 41 | - POSTGRES_PASSWORD_FILE=/run/secrets/db-password 42 | 43 | # 存储 44 | volumes: 45 | db-data: 46 | 47 | # 密码文件声明 48 | secrets: 49 | db-password: 50 | file: db/password.txt 51 | -------------------------------------------------------------------------------- /docker-compose.yml: -------------------------------------------------------------------------------- 1 | version: "3.8" 2 | services: 3 | backend: 4 | # 拉取的镜像 5 | image: jasonkhew96/biliroaming-go-server 6 | # 重启政策 7 | restart: always 8 | # 用于读取文件里的密码,先在下边声明此文件 9 | secrets: 10 | - db-password 11 | # 映射端口:容器端口 12 | ports: 13 | - 80:80 14 | # 依赖,以下容器必须先启动 15 | depends_on: 16 | - db 17 | # 映射 html 文件夹进去容器内 18 | volumes: 19 | - ./html/:/runner/html/ 20 | - ./config/:/runner/config/ 21 | # 连接容器以外的代理 22 | # 替换 "127.0.0.1" 或 "localhost" 23 | # 为 "host.docker.internal" 当作域名 24 | # extra_hosts: 25 | # - "host.docker.internal:host-gateway" 26 | db: 27 | build: db 28 | # 拉取的镜像 29 | # image: postgres 30 | # 重启政策 31 | restart: always 32 | # 用于读取文件里的密码,先在下边声明此文件 33 | secrets: 34 | - db-password 35 | # 存储 36 | volumes: 37 | - db-data:/var/lib/postgresql/data 38 | # 环境变量,设置 secrets 后,文件会映射到 "/run/secrets/[filename]" 39 | environment: 40 | - POSTGRES_DB=postgres 41 | - POSTGRES_PASSWORD_FILE=/run/secrets/db-password 42 | # nginx 反代 43 | proxy: 44 | # docker build proxy 文件夹 45 | build: proxy 46 | # 映射端口:容器端口 47 | ports: 48 | - 443:443 49 | # 依赖,以下容器必须先启动 50 | depends_on: 51 | - backend 52 | 53 | # 存储 54 | volumes: 55 | db-data: 56 | 57 | # 密码文件声明 58 | secrets: 59 | db-password: 60 | file: db/password.txt 61 | -------------------------------------------------------------------------------- /proxy/conf: -------------------------------------------------------------------------------- 1 | server { 2 | # https 3 | listen 443 ssl; 4 | listen [::]:443 ssl; 5 | 6 | server_name localhost; 7 | 8 | # 证书 9 | ssl_certificate /etc/nginx/certs/site.crt; 10 | ssl_certificate_key /etc/nginx/certs/site.key; 11 | 12 | # 限制客户端请求大小 13 | client_max_body_size 1M; 14 | 15 | # 获取 CLOUDFLARE 真实 IP 16 | # https://support.cloudflare.com/hc/en-us/articles/200170786-Restoring-original-visitor-IPs 17 | # https://www.cloudflare.com/ips/ 18 | # ipv4 19 | set_real_ip_from 173.245.48.0/20; 20 | set_real_ip_from 103.21.244.0/22; 21 | set_real_ip_from 103.22.200.0/22; 22 | set_real_ip_from 103.31.4.0/22; 23 | set_real_ip_from 141.101.64.0/18; 24 | set_real_ip_from 108.162.192.0/18; 25 | set_real_ip_from 190.93.240.0/20; 26 | set_real_ip_from 188.114.96.0/20; 27 | set_real_ip_from 197.234.240.0/22; 28 | set_real_ip_from 198.41.128.0/17; 29 | set_real_ip_from 162.158.0.0/15; 30 | set_real_ip_from 172.64.0.0/13; 31 | set_real_ip_from 131.0.72.0/22; 32 | set_real_ip_from 104.16.0.0/13; 33 | set_real_ip_from 104.24.0.0/14; 34 | # ipv6 35 | set_real_ip_from 2400:cb00::/32; 36 | set_real_ip_from 2606:4700::/32; 37 | set_real_ip_from 2803:f800::/32; 38 | set_real_ip_from 2405:b500::/32; 39 | set_real_ip_from 2405:8100::/32; 40 | set_real_ip_from 2a06:98c0::/29; 41 | set_real_ip_from 2c0f:f248::/32; 42 | 43 | # 2 选 1 44 | real_ip_header CF-Connecting-IP; 45 | # real_ip_header X-Forwarded-For; 46 | 47 | location / { 48 | proxy_pass http://backend:80; 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /db/initdb.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE users( 2 | uid BIGINT PRIMARY KEY NOT NULL, 3 | name VARCHAR(16) NOT NULL, 4 | vip_due_date TIMESTAMP NOT NULL, 5 | created_at TIMESTAMP NOT NULL, 6 | updated_at TIMESTAMP NOT NULL 7 | ); 8 | CREATE TABLE access_keys( 9 | key CHAR(32) PRIMARY KEY NOT NULL, 10 | uid BIGINT REFERENCES users(uid) NOT NULL, 11 | client_type VARCHAR(32) NOT NULL, 12 | created_at TIMESTAMP NOT NULL, 13 | updated_at TIMESTAMP NOT NULL 14 | ); 15 | CREATE TABLE play_url_caches( 16 | id SERIAL PRIMARY KEY, 17 | episode_id BIGINT NOT NULL, 18 | is_vip BOOLEAN NOT NULL, 19 | area SMALLINT NOT NULL, 20 | device_type SMALLINT NOT NULL, 21 | format_type SMALLINT NOT NULL, 22 | quality SMALLINT NOT NULL, 23 | data JSON NOT NULL, 24 | created_at TIMESTAMP NOT NULL, 25 | updated_at TIMESTAMP NOT NULL 26 | ); 27 | CREATE TABLE th_season_caches( 28 | id SERIAL PRIMARY KEY, 29 | season_id BIGINT NOT NULL, 30 | is_vip BOOLEAN NOT NULL, 31 | data JSON NOT NULL, 32 | created_at TIMESTAMP NOT NULL, 33 | updated_at TIMESTAMP NOT NULL 34 | ); 35 | CREATE TABLE th_season_episode_caches( 36 | episode_id BIGINT PRIMARY KEY NOT NULL, 37 | season_id BIGINT NOT NULL, 38 | created_at TIMESTAMP NOT NULL, 39 | updated_at TIMESTAMP NOT NULL 40 | ); 41 | CREATE TABLE th_season2_caches( 42 | id SERIAL PRIMARY KEY, 43 | season_id BIGINT NOT NULL, 44 | is_vip BOOLEAN NOT NULL, 45 | data JSON NOT NULL, 46 | created_at TIMESTAMP NOT NULL, 47 | updated_at TIMESTAMP NOT NULL 48 | ); 49 | CREATE TABLE th_season2_episode_caches( 50 | episode_id BIGINT PRIMARY KEY NOT NULL, 51 | season_id BIGINT NOT NULL, 52 | created_at TIMESTAMP NOT NULL, 53 | updated_at TIMESTAMP NOT NULL 54 | ); 55 | CREATE TABLE th_episode_caches( 56 | episode_id BIGINT PRIMARY KEY NOT NULL, 57 | data JSON NOT NULL, 58 | created_at TIMESTAMP NOT NULL, 59 | updated_at TIMESTAMP NOT NULL 60 | ); 61 | CREATE TABLE th_subtitle_caches( 62 | episode_id BIGINT PRIMARY KEY NOT NULL, 63 | data JSON NOT NULL, 64 | created_at TIMESTAMP NOT NULL, 65 | updated_at TIMESTAMP NOT NULL 66 | ); 67 | CREATE TABLE season_area_caches( 68 | season_id BIGINT PRIMARY KEY NOT NULL, 69 | cn BOOLEAN, 70 | hk BOOLEAN, 71 | tw BOOLEAN, 72 | th BOOLEAN, 73 | created_at TIMESTAMP NOT NULL, 74 | updated_at TIMESTAMP NOT NULL 75 | ); 76 | CREATE TABLE episode_area_caches( 77 | episode_id BIGINT PRIMARY KEY NOT NULL, 78 | cn BOOLEAN, 79 | hk BOOLEAN, 80 | tw BOOLEAN, 81 | th BOOLEAN, 82 | created_at TIMESTAMP NOT NULL, 83 | updated_at TIMESTAMP NOT NULL 84 | ); -------------------------------------------------------------------------------- /config/config.example.yml: -------------------------------------------------------------------------------- 1 | # 调试模式 2 | debug: false 3 | # 监听端口 4 | port: 80 5 | # 启用 ipv6 (仅连接反代使用) 6 | ipv6: false 7 | 8 | # 仅限大会员用户使用 9 | vipOnly: false 10 | 11 | # 黑名单接口 12 | blacklistApiUrl: "https://black.qimo.ink/api/users/%d" 13 | # 黑白名单模式 14 | # 0 - 禁用 15 | # 1 - 黑白名单 16 | # 2 - 白名单 17 | blockType: 1 18 | 19 | # 设置最低漫游版本,详情看哔哩漫游仓库 versionCode 20 | roamingMinVer: 0 21 | 22 | # 设置默认 area 参数 23 | defaultArea: hk 24 | 25 | # 替换泰区 aid (评论投币) 26 | thRedirect: 27 | aid: 0 28 | 29 | # 各用户(uid)限制器 30 | limiter: 31 | # 每秒请求限制 32 | limit: 2 33 | # 每秒突发求请求限制 34 | burst: 1 35 | 36 | # 搜索限制器 37 | searchLimiter: 38 | # 每秒请求限制 39 | limit: 1 40 | # 每秒突发求请求限制 41 | burst: 1 42 | 43 | # 自定义搜索强制插入内容 44 | customSearch: 45 | # 插入的 json 内容 46 | data: '{"title":"轉生成女性向遊戲只有毀滅 END 的壞人大小姐 X(僅限港澳台地區)","cover":"https://i0.hdslb.com/bfs/bangumi/image/0f96bfc98bbf5de38c8ba1516719231f3e9b69ff.png","uri":"https://www.bilibili.com/bangumi/play/ss39010/","param":"28234702","goto":"bangumi","ptime":1625241600,"season_id":39010,"season_type":1,"season_type_name":"番剧","media_type":1,"style":"小说改/穿越/搞笑/恋爱/少女","styles":"2021 | 番剧 | 日本","cv":"卡塔莉娜·克拉艾斯:內田真禮\n吉奧爾多·斯提亞特:蒼井翔太\n吉斯·克拉艾斯:柿原徹也\n亞蘭·斯提亞特:鈴木達央\n尼克爾·亞斯卡魯特:松岡禎丞\n梅麗·亨特:岡咲美保\n索菲亞·亞斯卡魯特:水瀨祈\n瑪麗亞·坎貝爾:早見沙織\n拉斐爾·沃爾特:增田俊樹\n安·謝利:和氣杏未\n傑佛瑞·斯提亞特:子安武人\n蘇珊娜·蘭德爾:上阪堇\n伊恩·斯提亞特:白井悠介\n賽琳娜·貝格:小倉唯\n魯弗斯·布羅德:鳥海浩輔","area":"日本","staff":"原作:山口悟(一迅社文庫IRIS/一迅社刊)\n角色原案:ひだかなみ\n監督:井上圭介\n系列構成:清水惠\n角色設計:大島美和\n道具設計:松永辰\n美術監督:込山明日香\n色彩設計:重富英里\n3D監督:栗林裕紀\n攝影監督:衛藤英毅\n編輯:瀧川三智(REAL-T)\n音響監督:龜山俊樹(grooove)\n音樂:田渕夏海、中村巴奈重、齋木達彥、櫻井美希、兼松眾、中島純子、青木沙也果、佐久間奏\n音樂製作:日音\n動畫製作:SILVER LINK.","is_selection":1,"badge":"番剧","episodes":[{"position":1,"uri":"https://www.bilibili.com/bangumi/play/ep408600","param":"408600","index":"1"},{"position":2,"uri":"https://www.bilibili.com/bangumi/play/ep408601","param":"408601","index":"2"},{"position":3,"uri":"https://www.bilibili.com/bangumi/play/ep408602","param":"408602","index":"3"},{"position":4,"uri":"https://www.bilibili.com/bangumi/play/ep408603","param":"408603","index":"4"},{"position":5,"uri":"https://www.bilibili.com/bangumi/play/ep408604","param":"408604","index":"5"},{"position":6,"uri":"https://www.bilibili.com/bangumi/play/ep408605","param":"408605","index":"6"},{"position":7,"uri":"https://www.bilibili.com/bangumi/play/ep408606","param":"408606","index":"7"},{"position":8,"uri":"https://www.bilibili.com/bangumi/play/ep408607","param":"408607","index":"8"},{"position":9,"uri":"https://www.bilibili.com/bangumi/play/ep408608","param":"408608","index":"9"},{"position":10,"uri":"https://www.bilibili.com/bangumi/play/ep408609","param":"408609","index":"10"},{"position":11,"uri":"https://www.bilibili.com/bangumi/play/ep408610","param":"408610","index":"11"},{"position":12,"uri":"https://www.bilibili.com/bangumi/play/ep408611","param":"408611","index":"12"}],"label":"小说改/穿越/搞笑/恋爱/少女","watch_button":{"title":"立即观看","link":"https://www.bilibili.com/bangumi/play/ss39010"},"follow_button":{"icon":"http://i0.hdslb.com/bfs/bangumi/154b6898d2b2c20c21ccef9e41fcf809b518ebb4.png","texts":{"0":"追番","1":"已追番"},"status_report":"bangumi"},"selection_style":"grid","episodes_new":[{"title":"1","uri":"https://www.bilibili.com/bangumi/play/ep408600","param":"408600","is_new":0,"position":1},{"title":"2","uri":"https://www.bilibili.com/bangumi/play/ep408601","param":"408601","is_new":0,"position":2},{"title":"...","uri":"bilibili://search/bangumi-episodes/grid/39010","param":"0","is_new":0,"type":1},{"title":"10","uri":"https://www.bilibili.com/bangumi/play/ep408609","param":"408609","is_new":0,"position":3},{"title":"11","uri":"https://www.bilibili.com/bangumi/play/ep408610","param":"408610","is_new":0,"position":4},{"title":"12","uri":"https://www.bilibili.com/bangumi/play/ep408611","param":"408611","is_new":0,"position":5}],"is_atten":1}' 47 | # 插入的 json 内容 48 | webData: '{"type":"media_bangumi","media_id":28235221,"title":"世界頂尖的暗殺者\u003cem class=\"keyword\"\u003e轉生\u003c/em\u003e為異世界貴族(僅限港澳台地區)","org_title":"世界最高の暗殺者、異世界貴族に転生する","media_type":1,"cv":"盧各:赤羽根健治\n蒂亞:上田麗奈\n塔兒朵:高田憂希\n瑪荷:下地紫野\n","staff":"原作:月夜淚( Sneaker文庫 KADOKAWA刊)\n角色原案:れい亜\n監督:田村正文\n系列構成、腳本:高山克彥\n角色設計:長田繪裡\n總作畫監督:吉川佳織\n設計輔佐:藤井亞裡莎\n武器設計:氏家嘉宏\n道具設計:今田茜\n美術監督、美術設定:吉山裕也\n美術助理:內山明日香\n色彩設計:吉田隼人\n攝影監督:新穀優子\n圖形設計:柏原進\n3D導演:江田惠一\n編輯:瀧川三智\n音響監督:土屋雅紀\n音響效果:川田清貴\n音響製作:Glovision\n音樂:黑田賢一\n音樂製作:Lantis\n動畫製作:SILVER LINK.×studio palette\n","season_id":39528,"is_avid":false,"hit_columns":["title"],"hit_epids":"","season_type":1,"season_type_name":"番剧","selection_style":"grid","ep_size":12,"url":"https://www.bilibili.com/bangumi/play/ss39528","button_text":"立即观看","is_follow":0,"is_selection":1,"eps":[{"id":425279,"cover":"http://i0.hdslb.com/bfs/archive/c6dba6068b7400909920df6df0fb6391c5dd7a77.png","title":"1","url":"https://www.bilibili.com/bangumi/play/ep425279","release_date":"","badges":null,"index_title":"1","long_title":"信任的報償"},{"id":425317,"cover":"http://i0.hdslb.com/bfs/archive/2d1d4ffb3c1cde990f1ef7b9b61228bdf2d2a296.png","title":"2","url":"https://www.bilibili.com/bangumi/play/ep425317","release_date":"","badges":null,"index_title":"2","long_title":"轉生的交易"},{"id":425318,"cover":"http://i0.hdslb.com/bfs/archive/86d2d889773d3b990b8c5d70f59fa51cf063d23b.png","title":"3","url":"https://www.bilibili.com/bangumi/play/ep425318","release_date":"","badges":null,"index_title":"3","long_title":"友誼的魔法"},{"id":425319,"cover":"http://i0.hdslb.com/bfs/archive/73425afdfbca1e3e0e9ed1571335abfb253365b4.png","title":"4","url":"https://www.bilibili.com/bangumi/play/ep425319","release_date":"","badges":null,"index_title":"4","long_title":"女神的計劃"},{"id":425320,"cover":"http://i0.hdslb.com/bfs/archive/f26b5ba9c710fccc7ac104144e902d7962f32643.png","title":"5","url":"https://www.bilibili.com/bangumi/play/ep425320","release_date":"","badges":null,"index_title":"5","long_title":"暗殺者的資格"},{"id":425321,"cover":"http://i0.hdslb.com/bfs/archive/7f80ef0130496828c0f8deb9d267fcde64be6337.png","title":"6","url":"https://www.bilibili.com/bangumi/play/ep425321","release_date":"","badges":null,"index_title":"6","long_title":"少女之家"},{"id":425322,"cover":"http://i0.hdslb.com/bfs/archive/4d65ec20d0feb497fd558df79a2f4ec223625bcd.png","title":"7","url":"https://www.bilibili.com/bangumi/play/ep425322","release_date":"","badges":null,"index_title":"7","long_title":"虛假的生活"},{"id":425323,"cover":"http://i0.hdslb.com/bfs/archive/f5bc415d22ac506559ee444e4778ae54b62b41ab.png","title":"8","url":"https://www.bilibili.com/bangumi/play/ep425323","release_date":"","badges":null,"index_title":"8","long_title":"選擇的儀式"},{"id":425324,"cover":"http://i0.hdslb.com/bfs/archive/85bcde25840625b61180fb22087441df406280f0.png","title":"9","url":"https://www.bilibili.com/bangumi/play/ep425324","release_date":"","badges":null,"index_title":"9","long_title":"暗殺的代價"},{"id":425325,"cover":"http://i0.hdslb.com/bfs/archive/e47f1240e5b276fe353bc1b55da2ec5b8cdd2b68.png","title":"10","url":"https://www.bilibili.com/bangumi/play/ep425325","release_date":"","badges":null,"index_title":"10","long_title":"初次約會"},{"id":425326,"cover":"http://i0.hdslb.com/bfs/archive/9bacd9538974ff812826a85a42d93ee19fe6256b.png","title":"11","url":"https://www.bilibili.com/bangumi/play/ep425326","release_date":"","badges":null,"index_title":"11","long_title":"背叛的决定"},{"id":425327,"cover":"http://i0.hdslb.com/bfs/archive/02128b4622b0513d5ac02ae757d3e74d03dd633c.png","title":"12","url":"https://www.bilibili.com/bangumi/play/ep425327","release_date":"","badges":null,"index_title":"12","long_title":"暗殺者的戰鬥"}],"badges":null,"cover":"http://i0.hdslb.com/bfs/bangumi/image/0d6306a74b6a941f187359ef646e3c65be31f749.jpg","areas":"日本","styles":"小说改/穿越/战斗","goto_url":"https://www.bilibili.com/bangumi/play/ss39528","desc":"世界第一的暗殺者,作為暗殺世家的長男重生了。\n作為能夠轉生到異世界的條件,他接下了女神給下達的唯一一項任務。\n\n“殺了被預言會帶給人類災厄的‘勇者’”。\n\n這是曾經世界最強暗殺者在新的人生中必須要完成...","pubtime":1633017600,"media_mode":2,"fix_pubtime_str":"","media_score":{"score":0,"user_count":0},"display_info":null,"pgc_season_id":39528,"corner":2}' 49 | 50 | # 自定义插入字幕 51 | customSubtitle: 52 | apiUrl: "https://example.com/path?season_id=%d" 53 | teamName: "蒙古上单字幕组" 54 | 55 | # 缓存时间 56 | # 实例:"1h1m4s" / "5m1s" / "4s" 57 | cache: 58 | # 用户 key 59 | accessKey: 168h 60 | # 用户资料(uid 和 大会员状态) 61 | user: 168h 62 | # 播放链接 63 | playUrl: 15m 64 | # 泰区 season 65 | thSeason: 15m 66 | # 泰区字幕(兼容老版本) 67 | thSubtitle: 15m 68 | 69 | # 代理 70 | # 实例 71 | # socks5://localhost:9050 72 | # username:password@localhost:9050 73 | proxy: 74 | cn: socks5://127.0.0.1:7890 75 | hk: socks5://127.0.0.1:7891 76 | tw: socks5://127.0.0.1:7892 77 | th: socks5://127.0.0.1:7893 78 | default: socks5://127.0.0.1:7894 79 | 80 | # 反代域名 81 | reverse: 82 | cn: api.bilibili.com 83 | hk: api.bilibili.com 84 | tw: api.bilibili.com 85 | th: app.biliintl.com 86 | 87 | # 反代搜索域名 88 | reverseSearch: 89 | cn: app.bilibili.com 90 | hk: app.bilibili.com 91 | tw: app.bilibili.com 92 | th: app.biliintl.com 93 | 94 | # 反代网页搜索域名 95 | reverseWebSearch: 96 | cn: api.bilibili.com 97 | hk: api.bilibili.com 98 | tw: api.bilibili.com 99 | 100 | # 鉴权 + 缓存 101 | auth: 102 | cn: true 103 | hk: true 104 | tw: true 105 | th: true 106 | 107 | # 数据库 108 | postgreSQL: 109 | host: "db" 110 | user: "postgres" 111 | # password: 'password' 112 | passwordFile: "/run/secrets/db-password" 113 | dbName: "postgres" 114 | port: 5432 115 | --------------------------------------------------------------------------------