Connect IP:8491 to a domain
Create a DNS A/AAAA record pointing to the server and configure Nginx as a reverse proxy.
1. Nginx and Certbot — AlmaLinux
sudo dnf install -y epel-release
sudo dnf install -y nginx certbot python3-certbot-nginx
sudo systemctl enable --now nginx
sudo firewall-cmd --permanent --add-service=http
sudo firewall-cmd --permanent --add-service=https
sudo firewall-cmd --reload
2. /etc/nginx/conf.d/wisdomera.conf
server {
listen 80;
server_name wisdomera.yourdomain.com;
location / {
proxy_pass http://127.0.0.1:8491;
proxy_http_version 1.1;
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;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
}
3. Validation and SSL
sudo nginx -t
sudo systemctl reload nginx
sudo setsebool -P httpd_can_network_connect 1
sudo certbot --nginx -d wisdomera.yourdomain.com
nginx -t
validates; reload applies; the SELinux command permits port 8491 access; Certbot obtains TLS.
Prerequisites:
DNS must be correct, ports 80/443 reachable, and domain validation possible. SSL can instead terminate on a corporate load balancer.