Better fresh installer #30

Open
opened 2024-10-02 10:34:16 +00:00 by julienbidoret · 15 comments
julienbidoret commented 2024-10-02 10:34:16 +00:00 (Migrated from gitlab.com)

When first installing stolon, we could provide a wizard 🪄 to allow the creation of a login / password.
I used that on https://codeberg.org/julienbidoret/myfffonts, with hashed password (which would be better than clear ones 😬)

When first installing stolon, we could provide a wizard 🪄 to allow the creation of a login / password. I used that on https://codeberg.org/julienbidoret/myfffonts, with hashed password (which would be better than clear ones 😬)
julienbidoret commented 2024-10-02 12:26:17 +00:00 (Migrated from gitlab.com)

added 1 design

added [1 design](/raphaelbastide/stolon/-/issues/30/designs?version=1705759)
julienbidoret commented 2024-10-02 12:26:39 +00:00 (Migrated from gitlab.com)

Something like that is on its way :)

Something like that is on its way :)
julienbidoret commented 2024-10-02 13:52:08 +00:00 (Migrated from gitlab.com)

Maybe you could try:

git clone https://gitlab.com/julienbidoret/stolon your_new_stolon_instance  
cd your_new_stolon_instance  
git checkout monaco

Then edit .htaccess to setup the RewriteBase to your_new_stolon_instance (← might have been the problem of #27 )
Then visit http://localhost/your_new_stolon_instance
(work in progress ;)

Maybe you could try: ``` git clone https://gitlab.com/julienbidoret/stolon your_new_stolon_instance cd your_new_stolon_instance git checkout monaco ``` Then edit .htaccess to setup the RewriteBase to your_new_stolon_instance (← might have been the problem of #27 ) Then visit http://localhost/your_new_stolon_instance (work in progress ;)
julienbidoret commented 2024-10-02 13:55:40 +00:00 (Migrated from gitlab.com)

mentioned in issue #27

mentioned in issue #27
raphaelbastide commented 2024-10-02 14:08:23 +00:00 (Migrated from gitlab.com)

Is this in the login branch?

Is this in the login branch?
julienbidoret commented 2024-10-02 14:09:40 +00:00 (Migrated from gitlab.com)

Oh sorry. No. Still the monaco branch (should do some pruning within the old branches)

Oh sorry. No. Still the monaco branch (should do some pruning within the old branches)
raphaelbastide commented 2024-10-02 14:26:29 +00:00 (Migrated from gitlab.com)

Oh wow it works, RewriteBase was the thing from the begining!
So to make it work, I have in .htaccess:

# HTTPS by default
RewriteCond %{HTTPS} off
RewriteCond %{HTTP_HOST} !=localhost
RewriteCond %{HTTP_HOST} !=dev.stolon
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L]

# RewriteBase is Stolon is in subdir
RewriteBase /

Both changes should be either mentioned in the README or setup in the wizard if possible? What do you think?
The login mode seam amazing. And I finally can run the monaco branch !

Oh wow it works, RewriteBase was the thing from the begining! So to make it work, I have in .htaccess: ``` # HTTPS by default RewriteCond %{HTTPS} off RewriteCond %{HTTP_HOST} !=localhost RewriteCond %{HTTP_HOST} !=dev.stolon RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L] # RewriteBase is Stolon is in subdir RewriteBase / ``` Both changes should be either mentioned in the README or setup in the wizard if possible? What do you think? The login mode seam amazing. And I finally can run the monaco branch !
julienbidoret commented 2024-10-02 14:33:20 +00:00 (Migrated from gitlab.com)

I fear we cannot update the .htaccess from our install script…
At some point, we might be able to handle paths within the app, but telling in the README that .htaccess should be tweaked and verified should be ok for now.

I fear we cannot update the .htaccess from our install script… At some point, we might be able to handle paths within the app, but telling in the README that .htaccess should be tweaked and verified should be ok for now.
raphaelbastide commented 2024-10-02 14:36:32 +00:00 (Migrated from gitlab.com)

Then the question is, would “normal” people use the stolon subdomain or directly /, to set the default path?

Then the question is, would “normal” people use the `stolon` subdomain or directly `/`, to set the default path?
raphaelbastide commented 2024-10-02 14:37:42 +00:00 (Migrated from gitlab.com)

…and how to avoid having to change .htaccess each time stolon is updated.

…and how to avoid having to change .htaccess each time stolon is updated.
julienbidoret commented 2024-10-02 14:53:59 +00:00 (Migrated from gitlab.com)

Guess what? It seem to work perfectly without any RewriteBase…
We also could remove (or comment out ?) the “HTTPS by default” in the .htaccess file and let users know whether they want to serve stolon through https or http.

Guess what? It seem to work perfectly without any RewriteBase… We also could remove (or comment out ?) the “HTTPS by default” in the .htaccess file and let users know whether they want to serve stolon through https or http.
raphaelbastide commented 2024-10-02 14:58:45 +00:00 (Migrated from gitlab.com)

That’s wonderful! Could you merge monaco + login in the main branch at some point? That would be very cool to have all that running on main, I can handle the documentation if needed.

That’s wonderful! Could you merge monaco + login in the main branch at some point? That would be very cool to have all that running on main, I can handle the documentation if needed.
julienbidoret commented 2024-10-02 15:09:39 +00:00 (Migrated from gitlab.com)

Ready to merge!

Ready to merge!
julienbidoret commented 2024-10-02 15:11:08 +00:00 (Migrated from gitlab.com)

Merged :)
As I presented Stolon last weekend, a clean main branch was indeed necessary…

Merged :) As I presented Stolon last weekend, a clean main branch was indeed necessary…
raphaelbastide commented 2024-10-02 15:19:36 +00:00 (Migrated from gitlab.com)

Works like a charm here!

Works like a charm here!
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
tarball/stolon#30
No description provided.