#Using Google Domains with Cloudflare Tunnels

7 messages · Page 1 of 1 (latest)

stiff lantern
#

So I'm redoing my install to have Nginx with ssl. I have a domain with Google and it's linked to Cloudflare with a tunnel sub domain. How do I set up the Webserver Config to use the sub domain?

still groveBOT
#

There were too many logs to read @stiff lantern. Please post 5 or less.

stiff lantern
#

server {
    listen 80;
    server_name <domain>;
    return 301 https://$server_name$request_uri;
}

server {
    listen 443 ssl http2;
    server_name homelab.page;

    root /var/www/pterodactyl/public;
    index index.php;

    access_log /var/log/nginx/pterodactyl.app-access.log;
    error_log  /var/log/nginx/pterodactyl.app-error.log error;

    # allow larger file uploads and longer script runtimes
    client_max_body_size 100m;
    client_body_timeout 120s;

    sendfile off;

    # SSL Configuration - Replace the example <domain> with your domain
    ssl_certificate /etc/letsencrypt/live/homelab.page/fullchain.pem;
    ssl_certificate_key /etc/letsencrypt/live/homelab.page/privkey.pem;```
still groveBOT
#

There were too many logs to read @stiff lantern. Please post 5 or less.

stiff lantern
#

Would it be like that with homelab.page or set it with the sub domain pterodactyl.homelab.page?

Edit: yes, use the subdomain.

stiff lantern
#

So I have it working now but I'm setting 502 errors when trying to view the panel.

autumn magnet
#

@stiff lantern In the Cloudflare Tunnel did you go to TLS settings and enable "No TLS Verify"?