An open API service indexing awesome lists of open source software.

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!

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.