Skip to main content

Live Server

The docs site is hosted on the server at:

2.24.195.201

The public docs domain is:

https://docs.nextgendevstudios.dev

DNS

The DNS record for the docs subdomain should be:

Type: A
Name: docs
Value: 2.24.195.201

Server Paths

Source repo: /root/home/StreetsDocs
Build output: /root/home/StreetsDocs/build
Nginx web root: /var/www/docs.nextgendevstudios.dev
Nginx config: /etc/nginx/sites-available/docs.nextgendevstudios.dev
Enabled config: /etc/nginx/sites-enabled/docs.nextgendevstudios.dev
SSL cert: /etc/letsencrypt/live/docs.nextgendevstudios.dev/fullchain.pem
SSL key: /etc/letsencrypt/live/docs.nextgendevstudios.dev/privkey.pem

Nginx Config

The basic Nginx site config before Certbot adds SSL looks like this:

server {
listen 80;
server_name docs.nextgendevstudios.dev;

root /var/www/docs.nextgendevstudios.dev;
index index.html;

location / {
try_files $uri $uri/ /index.html;
}
}

Certbot updates this file to serve HTTPS.

SSL

SSL is handled by Let's Encrypt through Certbot:

certbot --nginx -d docs.nextgendevstudios.dev

Certbot also sets up automatic renewal.