Discussion Subdomain as "main domain" with Cloudflare and Traefik

simongade

Junior Member
Original poster
Local time
4:49 AM
Oct 13, 2018
12
2
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

Full Member
Local time
10:49 PM
Mar 19, 2018
36
11
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.
 
M

MrDoob

Guest
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

Full Member
Local time
10:49 PM
Mar 19, 2018
36
11

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

kennsann

Junior Member
Local time
11:49 AM
Sep 14, 2019
5
2
Want to bump this old topic since there was no real answer.
 

artiume

Full Member
Local time
10:49 PM
Mar 19, 2018
36
11
Try and set one. If it works then it works. I currently don't use CF so I can't verify it.
 

kennsann

Junior Member
Local time
11:49 AM
Sep 14, 2019
5
2
Sorry, but are you serious? That is your reply? DId it answer any question or add anything useful? "Try" and "I don't use CF". It's the same as saying nothing...
 

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.


Staff online

Maintenance Donations

Recommend NewsGroups

      Up To a 58% Discount!