Skip to content

000benniu/lxcsm_sample_project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Client Extension for LXC-SM/LXC's sample: A React sample

Backup service

  • backup/LCP.json
  "env": {
    "LCP_BACKUP_CREATE_SCHEDULE": "0 16 * * *", // 1AM in UTC+9 
    "LCP_BACKUP_CLEANUP_SCHEDULE": "@monthly",
    "LCP_GCP_DATABASE_CHARSET": "utf8mb4",
    "LCP_GCP_DATABASE_COLLATION": "utf8mb4_unicode_ci"
  },

*参考:バックアップスケジュールの記入方法:https://crontab.guru/

DXP 関連

Config with longer session:

Fix back < button.

  1. Control Panel -> Instance Settings -> Pages -> Redirect URLs
  2. Security mode: DOMAIN
  3. Allowed Domains: *.lfr.cloud

How to use screen name to login.

  1. Control Panel -> Instance Settings -> User Authentication -> General

Authentication Token Expiration Time

  1. System Settings -> Users -> On-Demand Admin

Hide node infomation for UAT / DEV

  1. Open DXPC console. https://console.liferay.cloud/
  2. Go to liferay Service -> environment-variables
  3. Add Regular variables LIFERAY_WEB_PERIOD_SERVER_PERIOD_DISPLAY_PERIOD_NODE as false

release feature flags

  • System Settings > Release Feature Flags

Allow virtual host domain.

1. Open DXPC console. https://console.liferay.cloud/
2.  Go to liferay Service -> environment-variables
3. Add Regular variables LIFERAY_VIRTUAL_PERIOD_HOSTS_PERIOD_VALID_PERIOD_HOSTS as *

Web Server

  • Basic AUTH:
    • 設定ファイル: webserver/configs/dev/conf.d/liferay.conf
    • Password設定ファイル: webserver/configs/common/public/.htpasswd

エンコードされたパスワードの作成方法:

XXX/webserver/configs/dev/public > htpasswd -c .htpasswd [username]                                                                                                        
New password:
Re-type new password:
Adding password for user [username]
xxx/webserver/configs/dev/public > cat .htpasswd                                                                                                                      
[username]:$apr1$X1AsB9Op$MU0CSTdpHu.Vj2g/tLGTn1

参考

  • NGINX - Restricting Access with HTTP Basic Authentication

https://docs.nginx.com/nginx/admin-guide/security-controls/configuring-http-basic-authentication/

そのほか参考:

Githubリポジトリの接続方法

1.Config CI from https://console.liferay.cloud/, connect with personal git project. (Also can use project provided by dxp cloud team as default. eg. https://github.com/dxpcloud/[projectID]).

JENKINS_ADMIN_USER_NAME [ProjectID] // keep as default
JENKINS_URL [CI's URL] // keep as default
LCP_CI_DEPLOY_TARGET  [dev] // keep as default
LCP_CI_SCM_REPOSITORY_NAME  [github's repo name]
LCP_CI_SCM_REPOSITORY_OWNER [github's user name]
LCP_CI_SCM_PROVIDER [github]
LCP_CI_SCM_TOKEN  [the token get from settings.]  // Get it from github. https://github.com/settings/tokens

2.Change the project's webhook on github site to trigger the CI build.

About

a sample project for lxcsm

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published