L. Arnold's picture

I have been doing some exploration w/ Bookstack (TKL 18.0).
It turned out the reference place I sent a working system to has a built in Firwall Block against Dynamic DNS Hosted Websites.
So, I moved the system to an elastic IP and External Sub/Domain to another domain I have. I also set a Lets Encrypt Certificate to that domain.

I released the Tklapp.com association inside the hub.
I thought all was good till I entered the building that has the firewall in place.
Basically calling up the separate IP as well as the Separate Domain would start redirecting to the old TKLAPP.
Moreover, the Certificate name that calling some SSL cert set in place by HUBDNS.

I did some exploration and found the place inside of the Bookstack APP that the tklapp.com name is stored, and seemingly kept putting itself back into service. I deleted that entry.
Rebooted... Basically it is near impossible to shutdown or reboot the server. It will over time but.
Somehow the CERT from HUBDNS was overriding the LetsEncrypt Cert.
Also, calling the external FQDN I end up having a rewrite to the TKLAPP.com domain name.

I need to get rid of the TKLAPP association. It seems that needs to happen both in the HUB and on the Server simultaneously.
For now I have reset the TKLAPP host association in the Hub as I needed to be able to deal with the CERT of that name.

Thoughts on how to proceed? Seems like others will end up in similar situations sometime.

Not seeing the "format type" dropdown mentioned in another message but I did go to my settings and try to set my posting format to plain text. Lets see how that works.

thanks in advance.
Landis

Forum: 
L. Arnold's picture

Working ona Plain Text format. Just logged out after changing my default setting.
Lets see if a line break or 2 might be made.

Test new line.
And one without a blank line between.

Jeremy Davis's picture

I thought that there would be an option in the account profile page to set a default format - but unfortunately that doesn't seem to be the case :(

When you "reply" or start a new thread, right under the box where you write the text of your post there should be a "Text format" drop down. It will be "Filtered HTML" by default. Although that might only be visible to me (as an admin)?!

Anyway I just changed the formatting of your posts to "Plain Text" and line breaks are now visible.

L. Arnold's picture

Thanks for this Jeremy! I have set it to Plain Text. A bit difficult to find but at the bottom of the Account Profile page. Let's see if it sticks. Landis
L. Arnold's picture

I did have several line breaks in that above:. One blank line also both directly above and below this in fact. I don't see a place to specify text formatting here in the comment form. I did set it in the profile form, quite sure I did anyway.
Jeremy Davis's picture

I suspect that the domain set at firstboot is stored in multiple places in bookstack. There is actually a command (called 'artisan') which has an option to update the domain & the bookstack internal caches need to be cleared (also via an artisan command). It also includes a Turnkey artisan wrapper/helper script to make running running artisan easier.

I suggest reverting the domain change that you already made and then running this:

turnkey-artisan bookstack:update-url OLD_DOMAIN NEW_DOMAIN 
turnkey-artisan cache:clear

And for good measure, I'd also restart Apache:

systemctl restart apache2
L. Arnold's picture

To regain access. 1: Added the "tklapp.com" domain name to my Let's encrypt certfificate 2: Entered login credential to my main fqdn (top line also of let's encrypt) 3: was rerouted to the tklapp.com subdomain, but was valid this time as I see the cert being read now is the let's encrypt cert, not the turnkeylinux (hub) cert that I was seeing yesterday 4: Run new TKLbam Backup 5: Copied the list of changed files (just to see) 6: Create Hub Snapshot, Wait a bit for it to complete 7: Run your suggested commands but using my old/tklapp and new/fqdn domain names turnkey-artisan bookstack:update-url https://OLD_DOMAIN https://NEW_DOMAIN turnkey-artisan cache:clear (Note, there were no entries for the same in "http" speak) 8: Reboot -------------- Unfortunately though, still the same effect. Being rerouted to tklapp.com after first visiting the site with the fqdn. ---- Fished around some more. It turns out that Bookstack (in apache www) has an ".env" file. There is a line: ------ APP_URL=https://My.tklapp.com I changed that to the one I want and it worked. ------ thinking that turnkey-init may have fixed it but not sure. --- Anyway more to follow but at least following the Login and Primary CERT URL. I did have to add my tklapp.com URL also to the LetsEncrypt URL to do most of this as the APP_URL was what was killing this. Suprised that did not get changed by the turnkey-artisan bookstack:update-url command, but it did'nt On the first few go rounds. That may have been by design.

Add new comment