Skip to content

aesirxio/analytics-1stparty

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

1st party server for AesirX Analytics

What is this

This is your own 1st party server for storing analytics of your websites, thanks to AesirX Analytics.

Technically, will need Docker Compose for running the AesirX 1st Party Server Docker image, that will store your website analytics data in a MongoDB server (included in the Docker Compose file).

Technical requirements

  1. Docker.
  2. Docker Compose. Setup instructions

Optional technical requirements

You can also specify your own MongoDB server for storing analytics. MongoDB 6.x is required.

Instructions for setting up

  1. Clone the aesirx-1stparty.env.dist file into aesirx-1stparty.env and customize
    • You can choose not to customize anything.
    • If you have a separate MongoDB server, you can specify the credentials using the following variables:
      • DBUSER
      • DBPASS
      • DBHOST
      • DBPORT
      • DBNAME
    • You can choose to change the HTTP_PORT variable (default 80). Please keep in mind that this port is the one inside the container, so it's a beter idea if you don't change it.
    • Add your SoP ID after variable WHITELIST_WEB3ID=@your
  2. Clone the .env.dist file into .env and customize.
    • You can customize your ports:
      • HTTP_PORT: published port of the server. If you want your server to listen to a different port, this is the configuration that you need to change.
      • MONGO_PORT: published port for MongoDB
    • You can customize your DB settings (they need to be the same as in the aesirx-1stparty.env file).
      • MONGO_INITDB_ROOT_USERNAME
      • MONGO_INITDB_ROOT_PASSWORD
      • MONGO_INITDB_DATABASE
  3. Execute docker compose up -d to run the full setup, including the MongoDB server.