[FEAT] tofa swag domain conf

未关闭 适合新手
#817 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
66/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
活跃
技术栈
docker, nginx

调研方向

提议的配置 tofa.subdomain.conf 包含在 issue 正文中。首先检查现有的 SWAG 子域名配置文件和链接的 Tofa 设置指南,以确认预期的约定和上游设置。配置符合仓库约定,并且能够通过 SWAG 访问 Tofa,即为完成。

由索引模型根据 Issue 内容生成。

描述

enhancement
Is this a new feature request?
  • I have searched the existing issues
Wanted change

Sorry, no idea how to ask for this, other than here. Attached if the conf to allow Tofa via swag

Description

tofa.subdomain.conf

Benefits of this PR and context

Working template for tofa media server

How Has This Been Tested?

Written by tofa team and tested by me

Source / References

https://docs.tofa.tv/use-your-own-tunnel.html#swag

Reason for change

Allow Tofa via SWAG

Proposed code change

Version 2026/10/19

make sure that your tofa container is named tofa

make sure that your dns has a cname set for tofa

if tofa is running in bridge mode and the container is named "tofa", the below config should work as is

if not, replace the line "set $upstream_app tofa;" with "set $upstream_app ;"

or "set $upstream_app ;" for host mode, HOSTIP being the IP address of tofa

server {
listen 443 ssl;
listen [::]:443 ssl;

server_name tofa.*;

include /config/nginx/ssl.conf;

client_max_body_size 0;
proxy_buffering off;

location / {
    include /config/nginx/proxy.conf;
    include /config/nginx/resolver.conf;
    set $upstream_app tofa;
    set $upstream_port 33333;
    set $upstream_proto http;
    proxy_pass $upstream_proto://$upstream_app:$upstream_port;
}

}

主要语言
没有语言数据
星标
1.6k
派生
325
PR 合并指标
30 天内没有已合并 PR

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

相似的 Issue

更多 DevOps Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。