A Simple PoC Web App for VCL migration
To test it:
Clone repository
cd varnish-migrate3to4
Run server.py
$ python server.py
Open browser to view page
Upload a vcl file
Click on Convert
Converted file is stored with extension .v4
Converted folder to tarball with tar
TARGET
To directly convert uploaded file to v4 and convert to tarball then display tarball for download.
There is also a deloldfiles.py script, that deletes files in folder 'files' every 60seconds. It can be added as a cron job.
Further enhancement:
When the button is clicked, it should serve the tarball and not save anything.
Flask
$ pip install Flask
Tar
$ apt-get install tar
File uploader Cloned from simple-file-service A simple file uploader and downloader service in python flask. https://github.com/ihopeit/simple-file-service
visit http://localhost:5001 to upload files, you can visit uploaded files on the same page.
Varnish Migrator from varnish3to4 https://github.com/fgsch/varnish3to4