Discussion Subdomain as "main domain" with Cloudflare and Traefik

simongade

Blitz 3rd Class
Original poster
20
4
PG Version
8.6.3
Server Type
Remote - VPS
I have a domain, let's call it mysite.com. I use Cloudflare as DNS and of course utilize Traefik.
I'd like to have all my PGBlitz-stuff on pgblitz.mysite.com – so that portainer is at portainer.pgblitz.mysite.com, plex is at plex.pgblitz.com and so forth. Is that possible?
 

artiume

Blitz 2nd Class
26
10
I think the easiest way is to update using PG to make pgblitz.domain.tld your website, your front page will end up being pgblitz.domain.tld at this point.

Next, go to portainer, edit the container that you use as your homepage. Once you are in the edit menu, go to labels and append domain.tld so it looks like this

Host: pgblitz.domain.tld, domain.tld

You don't necessarily have to append it, you could just remove the pgblitz.domain.tld portion.

I'm not sure if PG will remove the modification during updates or rebuilds of the containers.
 

MrDoob

Administrator
Project Manager
Donor
1,413
402
That's not possible >>
portainer.pgblitz.mysite.com

An subdomain before an subdomain

That's never work

Simple..

Google.de. < main domain
translate.google.de < subdomain
and sub before sub dont work

fyi

After upgrade the pgversion you will lose your config !!!
 

artiume

Blitz 2nd Class
26
10

subdomains with subdomains do work. the question becomes does CF suppprt it
 

Create an account or login to comment

You must be a member in order to leave a comment

Create account

Create an account on our community. It's easy!

Log in

Already have an account? Log in here.

Similar threads


Development Donations

 

Trending