MCMS
git submodule add https://github.com/DenisTDR/MCMS.git MCMS
git submodule update --init --recursive
- Required
DB_URL- ex:Host=localhost;Database=db_name;Username=root;Password=passwd01EXTERNAL_URL-CONTENT_PATH- path to a persistent storage dir (ex.: for user uploaded files)
- Required when
ASPNETCORE_ENVIRONMENT=ProductionPERSISTED_KEYS_DIRECTORY- path to a persistent storage dir to keep private key used to sign auth cookies or jwt
- Optional
ASPNETCORE_ENVIRONMENT- Production/DevelopmentASPNETCORE_URLS- Web server binds to those UrlsALLOWED_CORS_HOSTS- ';' separated list of hosts (http[s]://domain[:port]), or*(star) to allow any host.LIB_STATIC_FILES_LOAD_TYPE- set topre-publishif you run the project withdotnet [watch] runRAZOR_RUNTIME_COMPILATION- set toTrueonly if project is running withdotnet [watch] run, callsAddRazorRuntimeCompilation()on MvcBuilder and registers Razor View paths with PhysicalFileProvider- Formly forms
FORMLY_DEBUG-Trueif you want to use formly form with an iframe with reverse proxy from /formly-proxy toFORMLY_SERVE_URLwith query params.FORMLY_SERVE_URL- domain+port for the ng serve app (ex:http://localhost:4455)
FORMLY_SCRIPTS_PATH- defaults to~, change it if the js files should be served from another domain/host- check
MCMS/Views/Shared/Formly/FormlyFormsScripts.cshtmlfor more information
- Seed & Migrations
SEED_ON_START- booleanSEED_FILE_PATH- string
MIGRATE_ON_START- boolean
- Users
REQUIRE_CONFIRMED_ACCOUNT- boolean - iftruenew users needs to confirm their email addresses.FIRST_USER_ADMIN- boolean - iftruethe first registered user will receiveAdminrole.SHOW_NON_CONFIRMED_ACCOUNT_ALERTDISABLE_REGISTRATION- disable admin user registration
- Route prefixes
ROUTE_PREFIX- defaults to/ADMIN_ROUTE_PREFIX- defaults to/- Results:
- AdminUiController:
[ROUTE_PREFIX]/[ADMIN_ROUTE_PREFIX]/UiController - AdminApiController:
[ROUTE_PREFIX]/[ADMIN_ROUTE_PREFIX]/api/UiController - ApiController:
[ROUTE_PREFIX]/api/UiController - Swagger docs
[ROUTE_PREFIX]/api/docs
- AdminUiController:
DEFAULT_LANGUAGE- defaults totenHIDE_PRIVACY_POLICY- boolean - hide privacy policy link in footer- Emailing