Settings¶
- class auth.settings_dist.Config¶
Config class for Newauth, this can be subclassed for different environments
Set the NEWAUTH_ENV environment variable to either prod, dev, or test for different configurations.
- SECRET_KEY¶
This is the flask secret key, you can easily generate one with openssl rand -base64 64
- EVE¶
Dictionnary to hold your alliance information.
Key Description internal_mask The mask to use for verifying api keys for alliance members. alliance_id The alliance ID, it can easily be found on Dotlan alliance_name The alliance name, if it’s too long you can use the ticker
- LDAP¶
OpenLDAP configuration.
Key Description Example Environment server The server adress localhost, 127.0.0.1 LDAP_HOST port The server port 389 LDAP_PORT admin The admin user cn=admin,dc=nodomain LDAP_ADMIN password The admin’s password LDAP_PASSWORD basedn The base domain dc=nodomain, dc=j4lp,dc=com LDAP_BASE memberdn The organisation where the users live ou=People,dc=nodomain LDAP_MEMBER
- REDIS_URL¶
URL to the redis server, e.g., redis://:password@localhost:6379/0
- MONGODB_SETTINGS¶
MongoDB settings for MongoEngine
Key Description Default DB The mongo database name auth HOST The mongo server address 127.0.0.1 PORT The mongo server port USERNAME The mongo server user if needed PASSWORD The mongo server password if needed