这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@santini-cyber
Copy link
Contributor

…mazon Linux 2023. Involves install of nginx, certbot, and the nginx certbot plugin. Certbot generates and installs valid certificates and updates the nginx ssl proxy configuration.

@review-agent-prime
Copy link

The PR is well written and provides a detailed guide on how to configure HTTPS for AWS private deployment. However, there are a few minor improvements that could be made:

  1. In Step 7, the server_name field is not properly closed. It should be server_name [insert FQDN here]; instead of server_name [insert FQDN here]];.

  2. In Step 9, it would be helpful to provide a brief explanation of what the certbot --nginx -d [Insert FQDN here] command does for those who may not be familiar with certbot.

  3. In Step 10, it would be helpful to provide a brief explanation of what the user should be looking for when they run the cat /etc/nginx/conf.d/anything.conf command.

Here are the suggested changes:

## Step 7: Create simple http proxy configuration for AnythingLLM 
These instructions are for CLI configuration and assume you are logged in to EC2 instance as the ec2-user.
1. $sudo vi /etc/nginx/conf.d/anything.conf
2. Add the following configuration ensuring that you add your FQDN:.
server {

   listen 80;
   server_name [insert FQDN here];
   location / {
      proxy_pass  http://0.0.0.0:3001;
      }
}
3. Enter ':wq' to save the changes to the anything config file

## Step 9: Generate/install cert
These instructions are for CLI configuration and assume you are logged in to EC2 instance as the ec2-user.
1. $sudo certbot --nginx -d [Insert FQDN here] 
    This command will generate and install a certificate for the specified domain using the nginx plugin.
    Example command: $sudo certbot --nginx -d anythingllm.exampleorganization.org
2. Enter the email address you would like to use for updates.
3. Accept the terms of service.
4. Accept or decline to recieve communication from letsencrypt.

## Step 10: Test Cert installation
1. $sudo cat /etc/nginx/conf.d/anything.conf
   This command will display the contents of the nginx configuration file. You should see a completely updated configuration that includes https/443 and a redirect configuration for http/80. 
2. Navigate to https://FQDN in a browser and you should be proxied to the AnythingLLM web UI.

@timothycarambat timothycarambat merged commit d1fbe94 into Mintplex-Labs:master Oct 20, 2023
@timothycarambat
Copy link
Member

Ping me in Discord if you want a contributor badge! Thanks for writing this up!

@timothycarambat
Copy link
Member

timothycarambat commented Oct 20, 2023

resolves #149

cabwds pushed a commit to cabwds/anything-llm that referenced this pull request Jul 3, 2025
Mintplex-Labs#276)

* Instructions for https configuration on an AWS EC2 instance running Amazon Linux 2023.

* Update aws_https_instructions.md

* Update aws_https_instructions.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants