Discussion - Change subdomain? | PlexGuide.com

Discussion Change subdomain?

  • Stop using Chrome! Download the Brave Browser via >>> [Brave.com]
    It's a forked version of Chrome with native ad-blockers and Google's spyware stripped out! Download for Mac, Windows, Android, and Linux!
Welcome to the PlexGuide.com
Serving the Community since 2016!
Register Now
Assists Greatly with Development Costs

antigravity

Experienced
Original poster
Apr 23, 2019
95
12
Hi everyone

Loving this stuff, currently in the process of replacing my current seedbox with it.

Is there anyway to change the subdomains created by PGBlitz?

Ie. For ombi, I currently use request.domain.tld

I'd like to keep this if possible?

Thanks
 

Admin9705

Administrator
Project Manager
Jan 17, 2018
5,119
2,065
You can fork it andanually change code and deploy your fork
 

antigravity

Experienced
Original poster
Apr 23, 2019
95
12
Thanks- are there any guides on where to change the code?
 
M

MrDoob

Guest
Open portainer
Click "local" >
click "container" >
Click "ombi" >
Click "duplicate / edit" >

Click "labels" >

Scroll down to
This line "
name = traefik.frontend.rule

value = Host: ombi.yourdomain.anyelse, "

Change it to

" name = traefik.frontend.rule

value = Host:request.yourdomain.anyelse, "

Click " deploy "

And wait 2min

Refresh the https://request.yourdomain.anyelse page .

Well done ;)
 

antigravity

Experienced
Original poster
Apr 23, 2019
95
12
Great thank you @MrDoob - much appreciated.

Will this be overridden if I redeploy anything - and will the change be captured by OAuth etc?
 
Last edited:

antigravity

Experienced
Original poster
Apr 23, 2019
95
12
Great thank you once again!
 

Matt2425

Noobz
May 16, 2018
1
0
where/how do can I make these changes without the override? can I fork the code, is there a guide on this?
 

Cringely

Citizen
Sep 11, 2018
9
5
where/how do can I make these changes without the override? can I fork the code, is there a guide on this?
Fork: https://github.com/PGBlitz/Apps-Community/tree/v8.6/apps
Find the .YML file for the app you want to change and modify the "pgrole" attribute in the name section. You should find it in the first 20 lines on any YML file.
3551

Redeploy and choose the personal fork option, follow the on-screen instructions.

This could cause issues further down stream, I'm not sure. Since the PGrole name is used to display text via SSH, choose file paths, etc.

A dirtier solution would be to modify the frontend rule label in the same YML file(s), it's usually around line 30.
Ctrl+f on "traefik.frontend.rule: "
modify the data from 'Host:{{pgrole}}.{{domain.stdout}},{{tldset}}' to 'Host:YourNameHere.{{domain.stdout}},{{tldset}}'

3552

Redeploy and choose the personal fork option, follow the on-screen instructions. Just know that this option, when complete, will output the incorrect URL, and I'm not sure how it will affect the "Traefik URL" settings:

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
? Access Configuration Info > http://unifi.pgblitz.com
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

▫ unifi:3478 <- Traefik URL (Internal App-to-App)
▫ unifi.domain.com

✅ Process Complete! | PRESS [ENTER]
 
Last edited:
Assists Greatly with Development Costs

Recommend NewsGroups

      Up To a 58% Discount!

Trending