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=passwd01
EXTERNAL_URL
-CONTENT_PATH
- path to a persistent storage dir (ex.: for user uploaded files)
- Required when
ASPNETCORE_ENVIRONMENT=Production
PERSISTED_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-publish
if you run the project withdotnet [watch] run
RAZOR_RUNTIME_COMPILATION
- set toTrue
only if project is running withdotnet [watch] run
, callsAddRazorRuntimeCompilation()
on MvcBuilder and registers Razor View paths with PhysicalFileProvider- Formly forms
FORMLY_DEBUG
-True
if you want to use formly form with an iframe with reverse proxy from /formly-proxy toFORMLY_SERVE_URL
with 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.cshtml
for more information
- Seed & Migrations
SEED_ON_START
- booleanSEED_FILE_PATH
- string
MIGRATE_ON_START
- boolean
- Users
REQUIRE_CONFIRMED_ACCOUNT
- boolean - iftrue
new users needs to confirm their email addresses.FIRST_USER_ADMIN
- boolean - iftrue
the first registered user will receiveAdmin
role.SHOW_NON_CONFIRMED_ACCOUNT_ALERT
DISABLE_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 toten
HIDE_PRIVACY_POLICY
- boolean - hide privacy policy link in footer- Emailing