Actions
S3¶
AWS S3 Storage Configuration: Frontend Applications
This document outlines the AWS S3 storage architecture and usage guidelines for frontend applications. S3 buckets are utilized to centrally manage environment-specific variables (DEV, UAT, PROD) and to host static utility files, including JSON constants and application assets.
1. Environment Variables (Private Access) ¶
- The private bucket is strictly restricted and used to securely store sensitive configuration data, including API URLs, application secrets, and cryptographic peppers.
S3 Bucket Configuration:
| s3 | value |
|---|---|
| Region | ap-southeast-1 (Singapore) |
| Bucket | ico-config |
| Path | uat/ico-web/env.env |
Environment File Contents:
| Name | Value |
|---|---|
| ENVIRONMENT | UAT |
| BASE_URL | https://uat.finansiaportal.com |
| BASE_REKOGNITOR_URL | https://ico-documents.s3.ap-southeast-1.amazonaws.com |
| BASE_STATIC_URL | https://ico-documents.s3.ap-southeast-1.amazonaws.com |
| BASE_BUCKET_URL | https://ico-documents.s3.ap-southeast-1.amazonaws.com |
| PEPER | bac9884f2ed8aec81ffbcd63396938f6 |
| PEPER_BACK_REGISTER | 8XhsFQ6cvxWHdz5nET4wQMSQAJErdJ4p |
| PEPER_CID | 56477db41c1b95b9dd1c2d142df7e215 |
2. Utility Files (Public Access) ¶
- The public bucket is configured to allow read access for the application to retrieve non-sensitive utility files, static assets, and localization data.
Bucket Metadata (Applies to all utility files):
-
Region: ap-southeast-1 (Singapore)
-
Bucket Name: ico-documents
JSON Constants
- This directory stores static JSON data sets used by the application, including localized versions for multi-language support.
| Path | Description | Example |
|---|---|---|
| constants/* | for Thai data source json | constants/banks.json |
| constants/locale/* | for multi language (TH, EN) data source json | constants/locale/banks.json |
Image Assets & Icons
- This directory hosts publicly accessible graphical assets for the user interface.
| Path | Description | Example |
|---|---|---|
| images/* | Public image files, including app icons, logos, and illustrations (supported formats: .png, .svg) | images/logo.svg |
Updated by prin methirattanasophon about 1 month ago · 2 revisions