[FEAT] tofa swag domain conf

Đang mở Phù hợp với người mới
#817 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
66/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
docker, nginx
Lĩnh vực
devops, infrastructure

Hướng nghiên cứu

Cấu hình được đề xuất tofa.subdomain.conf có trong nội dung issue. Trước tiên, hãy kiểm tra các tệp cấu hình subdomain SWAG hiện có và hướng dẫn thiết lập Tofa được liên kết để xác nhận các quy ước dự kiến và cài đặt upstream. Công việc hoàn tất khi cấu hình phù hợp với quy ước của repository và cho phép truy cập Tofa thông qua SWAG.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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;
}

}

Ngôn ngữ chính
Không có dữ liệu ngôn ngữ
Star
1.6k
Fork
325
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue tương tự

Thêm issue về DevOps

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.