You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| ASSETS_URL | "" (empty string) | "" (empty string) | Webpack is configured to modify static asset URLs to point to a CDN, like CloudFront. MUST end with a slash " / ".
37
+
| BASE_URL | raw:https://my‑api.app | raw:https://my‑api.app | The address of the Sails instance.
38
+
| DB_HOST | localhost | localhost | The hostname of the datastore.
39
+
| DB_USER | root | produser | Username for the datastore.
40
+
| DB_PASS | mypass | myprodpassword | Password for the datastore.
41
+
| DB_NAME | myapp | proddatabase | The name of the database inside the datastore.
42
+
| DB_PORT | 3306 | 3306 | The port number for datastore.
43
+
| DB_SSL | false | false | If the datastore requires SSL, set this to "true".
44
44
45
45
## Request Logging
46
46
Automatic incoming request logging, is a 2 part process. First, the [`request-logger` hook](api/hooks/request-logger.js) gathers info from the request, and creates a new [`RequestLog` record](api/models/RequestLog.js), making sure to mask anything that may be sensitive, such as passwords. Then, a custom response gathers information from the response, again, scrubbing sensitive data (using the [customToJSON](https://sailsjs.com/documentation/concepts/models-and-orm/model-settings?identity=#customtojson) feature of Sails models) to prevent leaking of password hashes, or anything else that should never be publicly accessible. The [`keepModelsSafe` helper](api/helpers/keep-models-safe.js) and the custom responses (such as [ok](api/responses/ok.js) or [serverError](api/responses/serverError.js)) are responsible for the final leg of request logs.
0 commit comments