remove configration.py and update read me to fetch example file from container

This commit is contained in:
Shihaam Abdul Rahman 2023-01-24 09:23:21 +05:00
parent 3bd725f6d2
commit e0aa1a1ce7
Signed by: shihaam
GPG Key ID: 6DA2E87EBC227636
2 changed files with 1 additions and 47 deletions

View File

@ -37,7 +37,7 @@ services:
```bash
mkdir -p media/image-attachments media/devicetype-images
```
- Use the sample `configuration.py` in this repo and edit it accordingly.
- Fetch example config from container `docker compose run --rm netbox cat /opt/netbox/netbox/netbox/configuration_example.py > configuration.py` and edit it according to your enviroment.
- Run `docker compose up -d`
## PLEASE, FOR THE LOVE OF GOD PLEASE DO NOT USE PASSWORD I GAVE IN THIS REPO IN PRODUCTION !!

View File

@ -1,46 +0,0 @@
###################################################################
# This file serves as a base configuration for testing purposes #
# only. It is not intended for production use. #
###################################################################
ALLOWED_HOSTS = ['*']
DATABASE = {
'NAME': 'netbox',
'USER': 'netbox',
'PASSWORD': 'even-confider-closable',
'HOST': 'postgres',
'PORT': '',
'CONN_MAX_AGE': 300,
}
#PLUGINS = [
# 'extras.tests.dummy_plugin',
#]
REDIS = {
'tasks': {
'HOST': 'redis',
'PORT': 6379,
'USERNAME': '',
'PASSWORD': '',
'DATABASE': 0,
'SSL': False,
},
'caching': {
'HOST': 'redis',
'PORT': 6379,
'USERNAME': '',
'PASSWORD': '',
'DATABASE': 1,
'SSL': False,
}
}
SECRET_KEY = 'd3B6rBhhBJ9gQyeYFuvjRsWeP9p6jHqZGYQF'
LOGGING = {
'version': 1,
'disable_existing_loggers': True
}