https://github.com/katalyst-labs/flask-duckdns-setup
Bash shell script to automate the process of configuring and setting up a Flask application using NGINX with SSL via Lets Encrypt!
https://github.com/katalyst-labs/flask-duckdns-setup
duckdns flask flask-application gunicorn lets-encrypt letsencrypt nginx
Last synced: about 2 months ago
JSON representation
Bash shell script to automate the process of configuring and setting up a Flask application using NGINX with SSL via Lets Encrypt!
- Host: GitHub
- URL: https://github.com/katalyst-labs/flask-duckdns-setup
- Owner: katalyst-labs
- License: mit
- Created: 2024-11-01T09:20:39.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-11-01T09:25:20.000Z (over 1 year ago)
- Last Synced: 2025-02-13T03:23:17.750Z (over 1 year ago)
- Topics: duckdns, flask, flask-application, gunicorn, lets-encrypt, letsencrypt, nginx
- Language: Shell
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Quick Start
1. **Clone the repository:**
```bash
$ git clone https://github.com/katalyst-labs/flask-duckdns-setup.git
```
2. **Make the script executable:**
```bash
chmod +x flask-duckdns-setup.sh
```
3. **Run the script:**
```bash
./flask-duckdns-setup.sh
```
4. **Alternative method:**
* Create a `.env` file in the root directory.
* Add your secret values to the file:
```
DUCKDNS_SUBDOMAIN=your_subdomain
DUCKDNS_TOKEN=your_token
FLASK_APP_NAME=your_flask_app_name
FLASK_APP_DIR=path/to/your/flask/app
USER=username
VENV_PATH=path/to/your/venv
EMAIL=your_email
```
* Then these values can be set in the current bash shell by simply sourcing the file as
```bash
source .env
```
## Contributing
Contributions are welcome! Please open an issue or submit a pull request.