mirror of
https://github.com/r4sas/Niflheim-api
synced 2025-09-09 12:42:49 +00:00
Update README.md
This commit is contained in:
parent
3b1eed1ff1
commit
90070148d3
@ -1,5 +1,20 @@
|
|||||||
# yggapi.py
|
# niflheim-api.py
|
||||||
|
|
||||||
This api provides a web interface to see some basic stats on the data vserv.py has collected and also provides and easy way to get the data through the api.
|
This api provides a web interface to see some basic stats on the data vserv.py has collected and also provides and easy way to get the data through the api.
|
||||||
|
|
||||||

|
## Install & Setup
|
||||||
|
|
||||||
|
First thing you are going to do is configure niflheim-api.py to use the Postgres databse you setup for vserv.py.
|
||||||
|
|
||||||
|
So open niflheim-api.py:
|
||||||
|
|
||||||
|
DB_PASSWORD = "password"
|
||||||
|
DB_USER = "yggindex"
|
||||||
|
DB_NAME = "yggindex"
|
||||||
|
DB_HOST = "localhost"
|
||||||
|
|
||||||
|
Make sure the above matches what you have in vserv.py.
|
||||||
|
|
||||||
|
The API will startup on port 3000 and accept all ipv6 connections if you want to change this edit the last line:
|
||||||
|
|
||||||
|
app.run(host='::', port=3000)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user