~aw/mygit#46: 
add static mode

I am increasingly unhappy with the complexity of having to run a full HTTP server inside mygit. I think I would prefer a static host, like stagit: https://git.codemadness.org/stagit/file/README.html

This could be a build flag perhaps

Status
REPORTED
Submitter
~aw
Assigned to
No-one
Submitted
2 months ago
Updated
2 months ago
Labels
No labels applied.

Johann Galle 2 months ago · edit

I think maintaining two completely different modes does not make sense, the better idea would be to switch. I also do not think generating all these HTML files is a good option.

IMHO the most sensible approach would be to dynamically generate pages, and leave the actual server stuff to something else. This is already more or less the intended use case, because mygit does not support HTTPS, so that would need a proxy already anyway. Maybe CGI would be a good solution for this, but at least that would be the general idea. We should probably look at what e.g. Apache, Nginx, caddy etc. support in this direction.

~aw 2 months ago

Yeah i think you’re right. My issue is the huge added complexity of the http server. If it could be swapped out w a simpler framework or there is a solution like cgi that may make sense. I avoided cgi bc caddy (the web server i use) doesn’t support it. Will have to think abt it more. Thanks for your feedback

Alex

On Aug 8, 2021, at 3:25 AM, Johann Galle outgoing@sr.ht wrote:

I think maintaining two completely different modes does not make sense, the better idea would be to switch. I also do not think generating all these HTML files is a good option.

IMHO the most sensible approach would be to dynamically generate pages, and leave the actual server stuff to something else. This is already more or less the intended use case, because mygit does not support HTTPS, so that would need a proxy already anyway. Maybe CGI would be a good solution for this, but at least that would be the general idea. We should probably look at what e.g. Apache, Nginx, caddy etc. support in this direction.

-- View on the web: https://todo.sr.ht/~aw/mygit/46#event-93995

~aw 2 months ago

I can't really come up with a strong argument against using fastcgi :thinking:

Register here or Log in to comment, or comment via email.