Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include configure webpage with workers #1

Open
ignoramous opened this issue Mar 12, 2021 · 11 comments
Open

Include configure webpage with workers #1

ignoramous opened this issue Mar 12, 2021 · 11 comments
Assignees

Comments

@ignoramous
Copy link
Contributor

Users should be able to configure the blocklists through serverless-dns deployment rather than rely on rethinkdns.com/configure. Figure out a way to share code between the RethinkDNS website and serverless-dns deployment.

The domain name for the endpoint must be picked up automatically, if possible (should be, from within workers?).

@cyruz-git
Copy link

Related to this, when you deploy a Cloudflare worker and go to that worker configuration page, the resulting .mobileconfig file contains basic.rethinkdns.com as ServerURL.

@ignoramous
Copy link
Contributor Author

the resulting .mobileconfig file contains basic.rethinkdns.com as ServerURL.

That should be a quick fix.

Btw, does .mobileconfig even work? celzero/rethink-app#580

@cyruz-git
Copy link

the resulting .mobileconfig file contains basic.rethinkdns.com as ServerURL.

That should be a quick fix.

Btw, does .mobileconfig even work? celzero/rethink-app#580

Yes it does work when installing the mobileconfig as a profile after downloading it through Safari. I didn't check the app though.

@ignoramous
Copy link
Contributor Author

Related to this, when you deploy a Cloudflare worker and go to that worker configuration page, the resulting .mobileconfig file contains basic.rethinkdns.com as ServerURL.

Fixed. Pls see if the generated mobileconfig works now, as expected?

@cyruz-git
Copy link

Related to this, when you deploy a Cloudflare worker and go to that worker configuration page, the resulting .mobileconfig file contains basic.rethinkdns.com as ServerURL.

Fixed. Pls see if the generated mobileconfig works now, as expected?

I synced my repo but after the CF workflow run now I get this error when I try to open the webpage:

TypeError: Failed to fetch; version: v70.0 (4). Please try after sometime.

This is the query:

configure?tstamp=2022/1667523717731&v=ext&u=https://mydomain&s=added

@ignoramous
Copy link
Contributor Author

ignoramous commented Nov 6, 2022

configure?tstamp=2022/1667523717731&v=ext&u=mydomain&s=added

We've moved to R2, but the "downloader" for the website still points to the older version which doesn't know about R2 at all... Moved the website to point to this new endpoint.

Old (Downloads from S3 / Cloudfront):

  • https://rethinkdns.com/configure?tstamp=1655223903366&v=ext&u=https://some-domain.com/

New (downloads from R2 / Cloudflare):

  • With year 2022 in path: https://rethinkdns.com/configure?tstamp=2022/1667523717731&v=ext&u=https://some-domain.com/
  • Without year 2022 in path: https://rethinkdns.com/configure?tstamp=1667523717731&v=ext&u=https://some-domain.com/

@cyruz-git
Copy link

Great, I confirm the mobileconfig points to the right server now.

@ghost
Copy link

ghost commented Nov 21, 2022

Great, I confirm the mobileconfig points to the right server now.

I still have problems downloading the mobileconfig...
The file is downloaded as if it were a document and is not downloaded in such a way that I find mobileconfig in the DNS section in the iPhone settings.

@cyruz-git
Copy link

Great, I confirm the mobileconfig points to the right server now.

I still have problems downloading the mobileconfig... The file is downloaded as if it were a document and is not downloaded in such a way that I find mobileconfig in the DNS section in the iPhone settings.

Download it with Safari, then open it with the Files app. After that, the profile needs to be installed from "Settings > General > VPN, DNS & Device Management".

@ghost
Copy link

ghost commented Nov 21, 2022

Great, I confirm the mobileconfig points to the right server now.

I still have problems downloading the mobileconfig... The file is downloaded as if it were a document and is not downloaded in such a way that I find mobileconfig in the DNS section in the iPhone settings.

Download it with Safari, then open it with the Files app. After that, the profile needs to be installed from "Settings > General > VPN, DNS & Device Management".

Ops, now it works... please put this information on the website. Thank you very much again!

@ignoramous
Copy link
Contributor Author

From #169

... would be great, because rethinkdns.com is blocked in some area (China Mainland, for example), and users from there won't configure the serverless DNS.

@ignoramous ignoramous self-assigned this Jun 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants