Skip to content

Instantly share code, notes, and snippets.

@instantdreams
Created January 6, 2022 23:46
Show Gist options
  • Save instantdreams/5ea4ceae5e4a034525a35f6633445345 to your computer and use it in GitHub Desktop.
Save instantdreams/5ea4ceae5e4a034525a35f6633445345 to your computer and use it in GitHub Desktop.
Example .env file for NPM backup and restore scripts - use cp .env.example .env and then edit to match your system settings
#!/bin/bash
# Script location : /srv/bin/config.sh
npm_db_name=[npm database container name] # Usually nginx-proxy-manager_db_1
mysql_user=[mysql username] # Usually npm
mysql_pass=[mysql password] # Usually npm and set in /srv/nginx-proxy-manager/.env.example
mysql_db=[mysql database] # Usually npm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment