Skip to content

How can I use HTTPS in LobeChat? #3861

Discussion options

You must be logged in to vote

Replace "yourdomain" with your actual domain.
Your domain's DNS needs to be directed to your server, VPS, container...
I'm using Ubuntu 24.04

sudo apt install nginx certbot python3-certbot-nginx -y

Just 4 lines you need to replace "yourdomain" with your actual domain.

sudo nano /etc/nginx/sites-available/lobechat

server {
    listen 80;
    server_name chat.yourdomain.com;
    return 301 https://$server_name$request_uri;
}

server {
    listen 443 ssl;
    server_name chat.yourdomain.com;

    ssl_certificate /etc/letsencrypt/live/chat.yourdomain.com/fullchain.pem;
    ssl_certificate_key /etc/letsencrypt/live/chat.yourdomain.com/privkey.pem;

    # Configurações de segurança SSL recome…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@cantalupo555
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by cantalupo555
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants