Skip to Content
Self-HostingNginx & SSL

Nginx & SSL

Domain setup

Point this DNS record to your server IP:

nexora.yourdomain.com A <server-ip>

SSL with Certbot

apt install -y certbot python3-certbot-nginx certbot --nginx \ -d nexora.yourdomain.com \ --email you@yourdomain.com \ --agree-tos --non-interactive

Nexora app nginx config

server { listen 80; server_name nexora.yourdomain.com; return 301 https://$host$request_uri; } server { listen 443 ssl; server_name nexora.yourdomain.com; ssl_certificate /etc/letsencrypt/live/nexora.yourdomain.com/fullchain.pem; ssl_certificate_key /etc/letsencrypt/live/nexora.yourdomain.com/privkey.pem; include /etc/letsencrypt/options-ssl-nginx.conf; location / { proxy_pass http://localhost:80; 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; # WebSocket support proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; proxy_read_timeout 86400; } }

Security headers

add_header X-Frame-Options "SAMEORIGIN"; add_header X-Content-Type-Options "nosniff"; add_header Referrer-Policy "strict-origin-when-cross-origin"; add_header Permissions-Policy "camera=(), microphone=(), geolocation=()";