64 lines
2.5 KiB
Plaintext
64 lines
2.5 KiB
Plaintext
|
*** Encrypted ConnectionString ***
|
|||
|
// Encrypt connection string with ServiceShared.Crypto.AES.Encryption
|
|||
|
// For encryption use the default MemoryMasterKey from AES Class, just use the function AES.Encrypt("connection_string")
|
|||
|
// Insert encrypted connection string in the appsettings.json
|
|||
|
// Exp:
|
|||
|
// Plan connection string: server=127.0.0.7;port=3306;uid=test;password=xxxx;database=test;
|
|||
|
// After ServiceShared.Crypto.AES.Encryption("server=127.0.0.1;port=3306;uid=test;password=xxxx;database=test;")
|
|||
|
// Encryption String: gOHCqY/I8uctbqjdg+bF0FIzIYQBBCj3wcTeuRn5VfU3Ou3NHV1E1XyoD0kKPKsLenNGZG45tChvnEsBKKnOiymyL+tI7/eeq5rwS4gsA47j3OYUSMdtjhVpumJt8IuN6Yq6s9M=
|
|||
|
// Example
|
|||
|
"ConnectionStrings": {
|
|||
|
"default": "dev",
|
|||
|
"prod": "",
|
|||
|
"dev": "gOHCqY/I8uctbqjdg+bF0FIzIYQBBCj3wcTeuRn5VfU3Ou3NHV1E1XyoD0kKPKsLenNGZG45tChvnEsBKKnOiymyL+tI7/eeq5rwS4gsA47j3OYUSMdtjhVpumJt8IuN6Yq6s9M="
|
|||
|
}
|
|||
|
|
|||
|
// Also you can use PasswortEncryptor.exe (S. Project) to encrypt sensitive data for appsettings.json
|
|||
|
|
|||
|
*** Trusted Header *+*
|
|||
|
// Configure TrustedUserAgent, HeaderSecureHash, HeaderValueSecureHash in the TrustedHeader.cs
|
|||
|
// This value have to exists in request headers from clients else throwing invalid client exception (basic secureity)
|
|||
|
|
|||
|
*** Midemaps ***
|
|||
|
// Documents/Midemaps
|
|||
|
// Designer - https://app.diagrams.net
|
|||
|
|
|||
|
*** dotAPNS ***
|
|||
|
/// https://github.com/alexalok/dotAPNS
|
|||
|
|
|||
|
/*** HOST DEVELOPMENT ***/
|
|||
|
add to hosts file development to local ip´s
|
|||
|
|
|||
|
File: C:\Windows\System32\drivers\etc\hosts
|
|||
|
|
|||
|
192.168.10.3 development
|
|||
|
192.168.137.1 development
|
|||
|
127.0.0.1 development
|
|||
|
172.21.200.143 development
|
|||
|
YOUR IP development
|
|||
|
|
|||
|
/***** PROJECTS *****/
|
|||
|
/** PasswortEncryptor **/
|
|||
|
// PasswortEncryptor is used to encrypt senstivie data for appsettings.json
|
|||
|
// PasswortEncryptor.exe should be delivered with inside & outside services so the admin can use it
|
|||
|
|
|||
|
/** PrimarySystemSimulator **/
|
|||
|
// This project is to use only for local test if necessary
|
|||
|
|
|||
|
/** ServiceInside **/
|
|||
|
// Main project of ServiceInside
|
|||
|
|
|||
|
/** ServuceUbsudeTest **/
|
|||
|
// UnitTests
|
|||
|
|
|||
|
/** ServiceShared **/
|
|||
|
// This project is used for ServiceInside and ServiceOutside. It contains all of models & business logic, that are shared between this both services
|
|||
|
|
|||
|
/** Support **/
|
|||
|
// A web MVC project, that gives some of statistical information to system users like: number of incoming requests, number of already downloaded results, etc...
|
|||
|
|
|||
|
/** WakeUp **/
|
|||
|
// WakeUp.exe is used to restart the service automaticly if it was shutdown by IIS
|
|||
|
|
|||
|
//** Admin **/
|
|||
|
// this projekct is only for admin user, they can administrate the services
|