-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.py
31 lines (25 loc) · 1.47 KB
/
config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import os
'''
# Utilize the os package to form your paths:
# The method os.path.join(part1, part2, ... lastPart) forms a properly-formatted path for your OS.
# The variable os.sep represents the proper path separator for your os (i.e. '/')
'''
# The path to the folder in which the machine's nginx configuration files lie (e.g. /etc/nginx/conf.d)
CONFIG_FILE_FOLDER = os.path.join(os.sep, 'etc', 'nginx', 'conf.d')
# The list of the names of the .conf files in CONFIG_FILE_FOLDER to update upon inet IP change
CONF_FILE_NAMES = ['virtual.conf'] # Format: ['name.conf', 'name2.conf', ... 'lastName.conf']
# The name of the network interface in which your inet ip address is broadcast (e.g. 'wlan0')
NETWORK_INTERFACE = 'wlp5s0'
# Optional: Configuration of email to be sent upon IP Address Changes
SMTP_SERVER = None
SMTP_PORT = None # A number, not a string
SERVER_EMAIL = None # The email address to send from
SERVER_PASSWORD = None # The password to the SERVER_EMAIL
RECIPIENTS = None # A list of the email addresses of the recipients of the email
SUBJECT = None # The subject of the email
'''
# Do NOT delete or rename any of these configuration constants. Doing so will stop the IP Updater from running.
# BE SURE TO RUN 'git update-index --skip-worktree config.py' in the command line AFTER MAKING CHANGES TO THIS FILE FOR THE
FIRST TIME! Doing so will keep your machine-specific configurations out of the repository, allowing the defaults to
remain untouched.
'''