Coder Social home page Coder Social logo

isrorbilling's Introduction

ISRORBilling

Table of contents generated with markdown-toc

As this is an educational project, the idea is to use it to learn new ways of working and help each other improve.

This tool handles the login from users into ISROR files; It has been designed extensible, so you can create your own login flow if you want to.

Appsettings layout

Appsettings is where you can configure the tool's behavior, you can override appsettings values depending on the environment you are running (Development, Staging, Production, etc...)

{
  "Logging": {
    "LogLevel": {
      "Default": "Information",
      "Microsoft.AspNetCore": "Warning",
      "Microsoft.EntityFrameworkCore": "Warning"
    }
  },
  "Kestrel": {
    "EndPoints": {
      "Http": {
        "Url": "http://0.0.0.0:18080" // ๐Ÿ‘ˆ Listening address. Note the port 18080 to avoid collisions.
      }
    }
  },
  "AuthService": "Simple", // ๐Ÿ‘ˆ Supported types: Simple, Full, Bypass, Nemo.
  "DbConfig": {
    "AccountDB": "Data Source=.\\;TrustServerCertificate=True;Initial Catalog=SILKROAD_R_ACCOUNT;User ID=sa;Password=1;",
    "JoymaxPortalDB": "Data Source=.\\;TrustServerCertificate=True;Initial Catalog=GB_JoymaxPortal;User ID=sa;Password=1;"
  },
  "NotificationService": {
    "Type": "Email" // ๐Ÿ‘ˆ Email (recommended) or Ferre
  },
  "EmailService": {
    "From": "yourEmail",
    "FromFriendlyName": "YourServerName??",
    "SmtpServer": "smtp.gmail.com",
    "Port": 465,
    "Username": "FOLLOW https://code-maze.com/aspnetcore-send-email/",
    "Password": "FOLLOW https://code-maze.com/aspnetcore-send-email/",
    "SkipTokenValidation": false
  },
  "NationPingService": {
    "ListenAddress": "0.0.0.0",
    "ListenPort": 12989
  },
  "SaltKey": "eset5ag.nsy-g6ky5.mp",  // ๐Ÿ‘ˆ Used to validate payloads in some of the auth services. it must match the GatewayServer hardcoded value!
  "AllowedHosts": "*" // ๐Ÿ‘ˆ learn more: https://learn.microsoft.com/en-us/aspnet/core/fundamentals/servers/kestrel/host-filtering?view=aspnetcore-6.0
}

You can see more details on Application and Host Configuration on Microsoft's documentation.

But in a nutshell,

  1. you can create appsettings.myserver.json and override some configs there.
  2. On your environment variables you set ASPNETCORE_ENVIRONMENT=myserver

The end result will be that appsettings.json will be merged internally with appsettings.myserver.json.

Useful for setting certain credentials that you don't want committed to git by accident.

About services

We try to follow "micro-service" architechture approach, this is done to allow multiple different implementations of a given service, so that the community can easily customize the behavior of their application.

We currently have 3 types of services

Authentication Service

This is the service used to authenticate a given user that's trying to login on the game. It's called by the gatewayserver via HTTP requests.

Notification Service

The notification service is used to send notifications such as secondary password reset or item lock to the user. This can be done via multiple implementations of the service.

Nation Ping Service

This is a service used to show the ping of the given server from the ingame login screen. App Screenshot

isrorbilling's People

Contributors

devtekve avatar neemo07 avatar blacksheep25 avatar barodevelopment avatar dummkopfofhachtenduden avatar its-neft avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.