Setup Checklist

Setup Checklist for Whitelabel Portal

Client Requirements

MagLoft To-Do

1. Create a new Whitelabel Account in Local Development

Fields:

  • Identifier : The white-label account identifier, usually the same as the name but all lower-case

  • Name: The white-label account name

  • Host: Domain for accessing the white-label portal, use temporary one for development.

    • Example: [identifier].magloft.dev

  • Match: Advanced matching for the domain

  • Protocol: This is either http/https, it depends on wether the client asks for HTTPS or not

  • Portal Version: Portal version for this account, usually get the latest one on other white-label account

  • Lockin:

  • Active: Wether the white-label account is active or not

  • User: Owner of the white-label account

  • Properties: Properties to set for the white-label account

docs for properties whitelabel

Properties:

clear tmp after change whitelabel recompile when deploy create css template for

2. Setup Whitelabel Portal Assets

1. Get all required Assets from other Whitelabel Account

2. Update all the required assets

  1. Use that .sketch file as a template for creating the needed assets

  2. Export & replace all assets in the folder with the updated ones

3. Upload updated assets to CDN

4. Create SCSS file for styling the white-label portal

  • Setup Local Proxy

    • Disable proxy for portal in local development so the portal will be served from the cloud-server

      • You can do this by simply adding return null on the first line of the resolver function

    • Allow proxy for accessing cloud-server from the temporary whitelabel domain eg: lighthouse.magloft.dev

      • You can do this by adding a new regex on the if statement of the resolver function for cloud-server proxy

    • Edit your hosts file so that a request to the temporary whitelabel domain is routed to localhost

  • Create new stylesheet for the whitelabel portal

    • Create new .scss file in the cloud-server repository, in this directory: app/assets/stylesheets/white-label/[identifier].css.scss

    • Clear tmp by using the rake task

    • Start the cloud-server

    • Get all the content from other .scss file in the same directory

    • Update all the color code with the one that's provided by the client

  • Make sure there's no missing asset when accessing the portal

  • Deploy the new scss file created

    • Make sure to run the precompile and clear tmp rake task before restarting the cloud-server

3. Create a new Whitelabel Account in Live

This is the same thing that you did with Step 1 but in Live environment, the only difference is that we are using the domain that's provided by the client instead of a temporary domain.

4. Setup SSL (Optional)

  1. Go to GCP Console

  2. Go to Network Services > Load Balancing

  3. Click cloud-server

  4. Click Edit

  5. Click Front End Configuration

  6. Click Add frontend IP and port

  7. Fill in the forms with the following value:

    1. Name: use a dash-separated domain name. Example: portal-libroslighthouse-com

    2. Protocol: HTTPS

    3. IP Version: IPv4

    4. IP Address: Create IP Address

    5. Port: 443

    6. Certificate: Create a new Certificate

  8. Click on Done

  9. Click on Update

circle-info

When you've completed the SSL Setup you will get a new IP address for the client to point to on their DNS setting

Last updated