zonemaster-gui
zonemaster-gui copied to clipboard
Add gui server
Purpose
Add a basic web server to serve GUI files.
Context
Based on #434 Following a discussion in the face to face, we decided to serve the GUI from a server to allow more flexibility.
Changes
- [x] Add a server in perl (using Dancer2)
- [x] Template index.html to include additional resources and override default ones (for css)
- [x] Detect browser language using the server
- [x] Add Makefile.PL for packaging
- [ ] Update reverse proxy documentation
- [ ] Update installation doc in zonemaster/zonemaster repo
- [ ] Add service script to manage daemon
- [x] Add example configuration and update configuration documentation
- [ ] Remove unused files (configuration, scripts, ...)
How to test this PR
Running the server:
% plackup scripts/zonemaster-gui
This is still a draft as it is not finished, but I would like some early feedback to avoid going the wrong path.
Commit 80e36dd is the relevant stuff
I still need architecture approval on this PR to finish (or change) this work.
Danser will create daemon listening to http, won't it? Will that be on localhost using apache as a reverse proxy? Will everything still be packaged in one zip file as today?
Dancer can spawn a small HTTP server for testing purposes, but when deploying a Dancer app in production, it can also spawn a FastCGI server, which is less expensive.
Danser will create daemon listening to http, won't it? Will that be on localhost using apache as a reverse proxy?
yes, there will be a reverse proxy in front either way
Will everything still be packaged in one zip file as today?
No it will be packaged as a perl module.
I am delaying that for next release, I think this PR needs more thoughts.