thảo luận Hướng dẫn tạo serverless cho Rethink DNS trên Cloudflare và Deno.com

Cách 2 làm ntn v fen ơi, mà nếu làm như v nó có link được với cloudflare worker của mình ko?
bạn mở từ workers thì cũng ra trang config này thôi, chỉ khác dòng địa chỉ
chọn xong, chép cái mã ở cuối cùng, dán vào phía sau địa chỉ workers của bạn là được
 
lâu quá ko vào nghịch, nay nghịch lại bộ lọc mới xong ấn cái icon quả táo để download profile cho ios về thì ko có gì xảy ra, ko down dc là bị sao v các fen ơi
 
lâu quá ko vào nghịch, nay nghịch lại bộ lọc mới xong ấn cái icon quả táo để download profile cho ios về thì ko có gì xảy ra, ko down dc là bị sao v các fen ơi
Bị vì bạn sai
Workers chỉ hỗ trợ DoH
Fly.io hỗ trợ cả DoH và DoT.
Muốn dùng profile Apple thì dùng nguyên gốc của rethink, hoặc thử dùng trang tạo profile bên thứ 3
 
Bị vì bạn sai
Workers chỉ hỗ trợ DoH
Fly.io hỗ trợ cả DoH và DoT.
Muốn dùng profile Apple thì dùng nguyên gốc của rethink, hoặc thử dùng trang tạo profile bên thứ 3
mình chưa hiểu ý bạn.
Ý của mình là cái trang edit của rethink ấy, nó có cái biểu tượng nho nhỏ quả táo để down profile cho Apple về. nhưng khi mình cấu hình xong muốn down về để xài thì ko down dc, click vào nhưng không có gì xảy ra.
 
kỳ lạ nhỉ, sử dụng link configure chính chủ của reposity thì lại down đc profile về ( https://sky.rethinkdns.com/), nhưng sử dụng link configure của mình thì lại không down được nhỉ ( Configure Blocklists | RethinkDNS (https://serverless-dns.truongleanhdung.workers.dev/1:gAMAFTQAgAA=))
Bồ sắp hiểu rồi đó. Dán link DoH của bạn vào tool này tạo profile xem dùng được không
Code:
https://dns.notjakob.com/tool.html
 
Bồ sắp hiểu rồi đó. Dán link DoH của bạn vào tool này tạo profile xem dùng được không
Code:
https://dns.notjakob.com/tool.html
bồ chưa hiểu í mình rùi 😥

Cách bồ chỉ mình vẫn xài mà, nhưng cái rethink này nó có chức năng down profile về, cái profile này trong setting nó hiển thị đúng tên Rethink nhìn gọn mắt lắm.
Còn notjakob mình xài nhiều profile từ cloudflare qua tới rethink nó đều hiển thị tên trong setting là Encrypted DNS..., không phân biệt dc cái nào với cái nào nhìn hơi xấu cái setting nên mình mới muốn down cái profile của chính thằng rethink cho down về í.
 
bồ chưa hiểu í mình rùi 😥

Cách bồ chỉ mình vẫn xài mà, nhưng cái rethink này nó có chức năng down profile về, cái profile này trong setting nó hiển thị đúng tên Rethink nhìn gọn mắt lắm.
Còn notjakob mình xài nhiều profile từ cloudflare qua tới rethink nó đều hiển thị tên trong setting là Encrypted DNS..., không phân biệt dc cái nào với cái nào nhìn hơi xấu cái setting nên mình mới muốn down cái profile của chính thằng rethink cho down về í.
Bạn host lên fly.io đi sẽ có như ý
 
các fen cho mình hỏi xíu, sao bên ngoài mình chỉnh variable là nextdns + google.
Code:
Variable name    Value
CF_DNS_RESOLVER_URL    https://dns.nextdns.io/
CF_DNS_RESOLVER_URL_2    https://dns.google/dns-query
CLOUD_PLATFORM    cloudflare
LOG_LEVEL    debug
WORKER_ENV    development

Nhưng mình check code của worker thì lại là cloudflare + google.

Code:
// url to blocklist files: trie (td), rank-dir (rd), metadata: (filetag)
      CF_BLOCKLIST_URL: {
        type: "string",
        default: "https://cfstore.rethinkdns.com/blocklists/"
      },
      // primary doh upstream
      CF_DNS_RESOLVER_URL: {
        type: "string",
        default: "https://cloudflare-dns.com/dns-query"
      },
      // secondary doh upstream
      CF_DNS_RESOLVER_URL_2: {
        type: "string",
        default: "https://dns.google/dns-query"
      },
      // upstream recursive rethinkdns resolver running on Fly.io
      MAX_DNS_RESOLVER_URL: {
        type: "string",
        // must always end with a trailing slash
        default: "https://max.rethinkdns.com/"
      },


Thực tế khi check dnstool thì cũng thấy phân giải qua cloudflare + google như trong code worker.
 
@Fioren sếp ơi!!!
Đã có code mới và hướng dẫn Deno mới. Sếp lên bài Deno lại đi. Mình làm theo được rồi, không biết có cần thêm variable gì không, không thêm vẫn xài được

https://docs.rethinkdns.com/dns/open-source/#deno-deploy

Code:
This project can be hosted on deno.com/deploy and supports DoH only. User will be liable for deno.com billing.

    1.Fork the serverless-dns repository (requires a GitHub account).
    2.In the repository you just forked, click on the Actions tab and Confirm that you want to use Actions, if prompted.
    3.Now, navigate to deno.com/deploy and Sign Up for an account.
    4.Create a new project via the deno dashboard by just clicking on the New Project button.
    5.Select your forked repository from the list of repositories that appear. If your GitHub username does not show up, click on + Add GitHub Account and install the Deno Deploy GitHub App with the necessary permissions.
    6.Once you select your forked repository, input boxes for project configuration show up. You need to do two things here; enter deno task prepare in the Build Step, and select src/server-deno.ts in Entrypoint field.
    7.Click on the Deploy Project button.
    8.Once your project is successfully deployed, you will see "Success!" page with a URL to your deployment that looks like https://<project-name>.deno.dev. If you found any issues, reach out to us over on GitHub.
    9.Optionally, if you need to configure environment variables, you can do so in the project settings page that you can access either by clicking on the Add environment variables link shown in the "Success!" page, or by navigating to https://dash.deno.com/projects/<project-name>/settings#environment-variables.
 
@Fioren sếp ơi!!!
Đã có code mới và hướng dẫn Deno mới. Sếp lên bài Deno lại đi. Mình làm theo được rồi, không biết có cần thêm variable gì không, không thêm vẫn xài được

https://docs.rethinkdns.com/dns/open-source/#deno-deploy

Code:
This project can be hosted on deno.com/deploy and supports DoH only. User will be liable for deno.com billing.

    1.Fork the serverless-dns repository (requires a GitHub account).
    2.In the repository you just forked, click on the Actions tab and Confirm that you want to use Actions, if prompted.
    3.Now, navigate to deno.com/deploy and Sign Up for an account.
    4.Create a new project via the deno dashboard by just clicking on the New Project button.
    5.Select your forked repository from the list of repositories that appear. If your GitHub username does not show up, click on + Add GitHub Account and install the Deno Deploy GitHub App with the necessary permissions.
    6.Once you select your forked repository, input boxes for project configuration show up. You need to do two things here; enter deno task prepare in the Build Step, and select src/server-deno.ts in Entrypoint field.
    7.Click on the Deploy Project button.
    8.Once your project is successfully deployed, you will see "Success!" page with a URL to your deployment that looks like https://<project-name>.deno.dev. If you found any issues, reach out to us over on GitHub.
    9.Optionally, if you need to configure environment variables, you can do so in the project settings page that you can access either by clicking on the Add environment variables link shown in the "Success!" page, or by navigating to https://dash.deno.com/projects/<project-name>/settings#environment-variables.
1719588844860.png

chỗ này thêm gì v fen
 
Deno free được một triệu request một tháng. Không biết nó tính request như thế nào. Để mình xem thử Deno có tính request như Workers không.
Worker 1 ngày mình xài khoảng 70 ngàn request
coi cái 70k này ở đâu v fen, lâu quá quên mất mà mò nãy giờ ko nhớ chỗ nào
 
Back
Top