Skip to content

Conversation

@bmegacoach
Copy link

I was facing issue in deploying tiledesk with domain. The config file was wrong. I have edited the config file. so domain appears.

Setting up Nginx Reverse Proxy with SSL for Tiledesk

This configuration allows you to serve the Tiledesk dashboard securely over HTTPS, while the backend continues to run on its default Docker port (8081). It also automatically redirects HTTP traffic to HTTPS.

1️⃣ Prerequisites

Tiledesk running on localhost:8081 (Docker container)

Domain pointing to your server, e.g., tile.megaversepro.app

Nginx installed on your server

Certbot installed for Let’s Encrypt SSL certificates

2️⃣ Nginx Configuration

Create or edit your Nginx site config, e.g., /etc/nginx/sites-available/tile.megaversepro.app:

Redirect all HTTP traffic to HTTPS

server {
listen 80;
server_name tile.megaversepro.app;

return 301 https://$host$request_uri;

}

HTTPS server

server {
listen 443 ssl http2;
server_name domain.com;

# SSL Certificates from Let's Encrypt
ssl_certificate /etc/letsencrypt/live/domain.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/domain.com/privkey.pem;
ssl_protocols TLSv1.2 TLSv1.3;
ssl_ciphers HIGH:!aNULL:!MD5;

# Proxy to Tiledesk dashboard
location / {
    proxy_pass http://localhost:8081/;
    proxy_http_version 1.1;

    # Preserve client info and protocol
    proxy_set_header Host $host;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header X-Forwarded-Proto $scheme;

    # Enable WebSocket support for realtime features
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection "upgrade";
}

}

3️⃣ Apply Configuration

Test Nginx config

sudo nginx -t

Reload Nginx to apply changes

sudo systemctl reload nginx

I was facing issue in deploying tiledesk with domain. The config file was wrong. I have edited the config file. so domain appears.
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.

1 participant