This application forked from tilda-static-page-exporter repository and contains some changes:
- Added Nginx to serve static files
- Added custom js, css and images paths reading from Tilda
- Handles Tilda's site export webhook via Tilda's API
- Exports all site files to specified directory
- Exports sitemap.xml and robots.txt
- Serves this files via Nginx
- Generate API credentials (Tilda's Dashboard->Site Settings->API Integration->Generate new API keys)
- Add webhook URL on same page ([YOUR SERVER IP OR HOSTNAME]/webhook)
- Start applicaton in docker
docker run --rm -d -p 80:80 \ -e "TILDA_PUBLIC_KEY=[YOUR PUBLIC KEY]" \ -e "TILDA_SECRET_KEY=[YOUR SECRET KEY]" \ -e 'TILDA_STATIC_PATH_PREFIX=/static' \ # OPTIONAL # \ -e 'TILDA_ORIGINAL_URL=[Original Tilda URL e.g "https://projectXXXXXXX.tilda.ws"]' \ -e 'TILDA_ORIGINAL_HOST=[Original Tilda host e.g "yourcustomdomain.com"]' \ # OPTIONAL # \ -v [YOUR STATIC FILES DIRECTORY]:/static \ flipperdevices/flipper-tilda-webserver:[LATEST TAG FROM GITHUB]
- Make some chages on your site and type 'Publish'. Your site will be avaliabe on your server in a few minnutes