mirror of
https://github.com/strapi/strapi.git
synced 2025-09-25 16:29:34 +00:00
clean up AWS guide
Signed-off-by: Derrick Mehaffy <derrickmehaffy@gmail.com>
This commit is contained in:
parent
ad3f85f85d
commit
5227831bf1
@ -2,11 +2,11 @@
|
||||
|
||||
This is a step-by-step guide for deploying a Strapi project to [Amazon AWS EC2](https://aws.amazon.com/ec2/). This guide will connect to an [Amazon AWS RDS](https://aws.amazon.com/rds/) for managing and hosting the database. Optionally, this guide will show you how to connect host and serve images on [Amazon AWS S3](https://aws.amazon.com/s3/).
|
||||
|
||||
Prior to starting this guide, you should have created a [Strapi project](../getting-started/quick-start.md), to use for deploying on AWS. And have read through the [configuration](../installation/deployment.md#configuration) section.
|
||||
Prior to starting this guide, you should have created a [Strapi project](../getting-started/quick-start.md), to use for deploying on AWS. And have read through the [configuration](../getting-started/deployment.md#configuration) section.
|
||||
|
||||
### Amazon AWS Install Requirement and creating an IAM non-root user
|
||||
### Amazon AWS Install Requirements and creating an IAM non-root user
|
||||
|
||||
- You must have a free [Amazon AWS](aws.amazon.com/free) before doing these steps.
|
||||
- You must have an [Amazon AWS](aws.amazon.com/free) account before doing these steps.
|
||||
|
||||
Best practices for using **AWS Amazon** services state to not use your root account user and to use instead the [IAM (AWS Identity and Access Management) service](https://docs.aws.amazon.com/IAM/latest/UserGuide/introduction.html). Your root user is therefore only used for a very few [select tasks](https://docs.aws.amazon.com/general/latest/gr/aws_tasks-that-require-root.html). For example, for **billing**, you create an **Administrator user and Group** for such things. And other, more routine tasks are done with a **regular IAM User**.
|
||||
|
||||
|
@ -8,7 +8,7 @@ Deploying **databases** along with Strapi is covered in the [Databases Guide](..
|
||||
|
||||
### Documented Options
|
||||
|
||||
Manual guides guides for deployment on various platforms, for One-click and docker please see the [installation](./installation) guides.
|
||||
Manual guides for deployment on various platforms and additonal software options, for One-click and docker please see the [installation](./installation) guides.
|
||||
|
||||
<div>
|
||||
<InstallLink link="../deployment/amazon-aws">
|
||||
@ -55,17 +55,29 @@ Manual guides guides for deployment on various platforms, for One-click and dock
|
||||
</InstallLink>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<InstallLink link="../deployment/proxy">
|
||||
<template #icon>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="-35.5 26 32 32" width="64" height="64"><path d="M-33.442 42.023v-7.637a.68.68 0 0 1 .385-.651l13.173-7.608c.237-.148.503-.178.74-.03l13.232 7.637a.71.71 0 0 1 .355.651V49.63a.71.71 0 0 1-.355.651l-11.367 6.57a56.27 56.27 0 0 1-1.806 1.036c-.266.148-.533.148-.8 0l-13.202-7.608c-.237-.148-.355-.326-.355-.622v-7.637z" fill="#fff"/><path d="M-24.118 39.18v8.9c0 1.006-.8 1.894-1.865 1.865-.65-.03-1.154-.296-1.5-.858-.178-.266-.237-.562-.237-.888V35.836c0-.83.503-1.42 1.154-1.687s1.302-.207 1.954 0c.622.178 1.095.562 1.5 1.036l7.874 9.443c.03.03.06.09.118.148v-9c0-.947.65-1.687 1.57-1.776 1.154-.148 1.924.68 2.042 1.54v12.6c0 .7-.326 1.214-.918 1.54-.444.237-.918.296-1.42.266a3.23 3.23 0 0 1-1.954-.829c-.296-.266-.503-.592-.77-.888l-7.49-8.97c0-.03-.03-.06-.06-.09z" fill="#3498DB"/></svg>
|
||||
</template>
|
||||
<template #title>Proxy</template>
|
||||
<template #description>
|
||||
Overview of various Proxy options and sample configurations
|
||||
</template>
|
||||
</InstallLink>
|
||||
</div>
|
||||
|
||||
### Configuration
|
||||
|
||||
#### 1. Configure
|
||||
|
||||
Update the `production` settings with the IP where the project will be running.
|
||||
Update the `production` settings with the IP or domain name where the project will be running.
|
||||
|
||||
**Path —** `./config/environments/production/server.json`.
|
||||
|
||||
```js
|
||||
{
|
||||
"host": "0.0.0.0", // IP or localhost
|
||||
"host": "0.0.0.0", // IP, localhost, or 0.0.0.0
|
||||
"port": 1337
|
||||
}
|
||||
```
|
||||
@ -79,7 +91,7 @@ If you are passing a number of configuration item values via environment variabl
|
||||
|
||||
```js
|
||||
{
|
||||
"host": "${process.env.APP_HOST || '127.0.0.1'}",
|
||||
"host": "${process.env.APP_HOST || '0.0.0.0'}",
|
||||
"port": "${process.env.NODE_PORT || 1337}"
|
||||
}
|
||||
```
|
||||
|
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user