cloud-deployments/aws/cloudformation/aws_https_instructions.md
Instructions for manual https configuration after generating and running the aws cloudformation template (aws_build_from_source_no_credentials.json). Tested on following browsers: Firefox version 119, Chrome version 118, Edge 118.
Requirements
These instructions assume that you already have a top-level domain configured and are using a subdomain to access AnythingLLM.
These instructions are for CLI configuration and assume you are logged in to EC2 instance as the ec2-user.
These instructions are for CLI configuration and assume you are logged in to EC2 instance as the ec2-user.
These instructions are for CLI configuration and assume you are logged in to EC2 instance as the ec2-user.
# server {
# listen 80;
# listen [::]:80;
# server_name _;
# root /usr/share/nginx/html;
#
# # Load configuration files for the default server block.
# include /etc/nginx/default.d/*.conf;
#
# error_page 404 /404.html;
# location = /404.html {
# }
#
# error_page 500 502 503 504 /50x.html;
# location = /50x.html {
# }
# }
These instructions are for CLI configuration and assume you are logged in to EC2 instance as the ec2-user.
server {
# Enable websocket connections for agent protocol.
location ~* ^/api/agent-invocation/(.*) {
proxy_pass http://0.0.0.0:3001;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
}
listen 80;
server_name [insert FQDN here];
location / {
# Prevent timeouts on long-running requests.
proxy_connect_timeout 605;
proxy_send_timeout 605;
proxy_read_timeout 605;
send_timeout 605;
keepalive_timeout 605;
# Enable readable HTTP Streaming for LLM streamed responses
proxy_buffering off;
proxy_cache off;
# Proxy your locally running service
proxy_pass http://0.0.0.0:3001;
}
}
These instructions are for CLI configuration and assume you are logged in to EC2 instance as the ec2-user.
These instructions are for CLI configuration and assume you are logged in to EC2 instance as the ec2-user.