https://github.com/flipperdevices/flipper-tilda-webserver
Tilda exporter and webserver
https://github.com/flipperdevices/flipper-tilda-webserver
Last synced: about 1 year ago
JSON representation
Tilda exporter and webserver
- Host: GitHub
- URL: https://github.com/flipperdevices/flipper-tilda-webserver
- Owner: flipperdevices
- License: gpl-3.0
- Created: 2023-04-09T13:20:47.000Z (about 3 years ago)
- Default Branch: dev
- Last Pushed: 2023-12-19T16:14:42.000Z (over 2 years ago)
- Last Synced: 2023-12-19T20:58:33.588Z (over 2 years ago)
- Language: Python
- Size: 25.4 KB
- Stars: 7
- Watchers: 5
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Flipper Tilda Exporter
## General
This application forked from [tilda-static-page-exporter](https://github.com/FallenChromium/tilda-static-page-exporter) repository and contains some changes:
1. Added Nginx to serve static files
2. Added custom js, css and images paths reading from Tilda
## This application does
1. Handles Tilda's site export webhook via [Tilda's API](https://help.tilda.cc/api)
2. Exports all site files to specified directory
3. Exports sitemap.xml and robots.txt
4. Serves this files via Nginx
## How to use
1. Generate API credentials (Tilda's Dashboard->Site Settings->API Integration->Generate new API keys)
2. Add webhook URL on same page ([YOUR SERVER IP OR HOSTNAME]/webhook)
3. Start applicaton in docker
```bash
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]
```
4. Make some chages on your site and type 'Publish'. Your site will be avaliabe on your server in a few minnutes