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

Running All Protocols on port 443 and also adguard home dns dns over https at port 443? #162

Closed
t-e-s-tweb opened this issue Jul 11, 2022 · 1 comment

Comments

@t-e-s-tweb
Copy link

Can you please give the recommended flow for adding all protocols one by one or combined at port 443 and also being able to run adguard on 443 for doh service?

@jinwyp
Copy link
Owner

jinwyp commented Jul 13, 2022

1 I recommended install adguard home on a separate server. Because adguard home require more CPU and memory to resovle DNS request

2 Install adguard home and xray/ trojan on same server : Step 1 install adguard home first, Step 2 install xray/trojan using non 443 port. And Don't install Nginx . Because adguard home will serve 443 for TLS and DOH

3 Install All Protocols on port 443: Step 1 Choose 12 or 23 to install nginx and v2ray/xray first. Step 2 install adguard home.
Step 3 modify /etc/nginx/nginx.conf to reverse proxy adguard home .

https://github.com/AdguardTeam/AdGuardHome/wiki/FAQ#nginx
AdguardTeam/AdGuardHome#4266

There are two important settings: One is reverse proxy for adguard home UI .

location /aghome/ {
    proxy_pass http://AGH_IP:AGH_PORT/;
    proxy_redirect / /aghome/;
    proxy_cookie_path / /aghome/;
}

The other settings is serve DOH by Nginx. Need to disable DoH encryption on AdGuard Home.

When you use TLS on your reverse proxy server, there's no need to use TLS on AdGuard Home. Set allow_unencrypted_doh: true in AdGuardHome.yaml to allow AdGuard Home respond to DoH requests without TLS encryption.

@jinwyp jinwyp added adguard documentation Improvements or additions to documentation DNS and removed documentation Improvements or additions to documentation labels Jul 13, 2022
@jinwyp jinwyp closed this as completed Jul 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants