generated from nhcarrigan/template
e8318215a9
- Rewrote README with full directory structure, add/remove site workflows, deploy instructions, and a test suite reference table - Added a one-line header comment to each sites-available/*.conf explaining what category of sites belongs in that file
32 lines
820 B
Plaintext
32 lines
820 B
Plaintext
# Nails app: Angular front-end SPA and API backend.
|
|
server {
|
|
listen 443 ssl;
|
|
server_name nails-api.nhcarrigan.com;
|
|
ssl_certificate /etc/letsencrypt/live/nails-api.nhcarrigan.com/fullchain.pem;
|
|
ssl_certificate_key /etc/letsencrypt/live/nails-api.nhcarrigan.com/privkey.pem;
|
|
|
|
location / {
|
|
proxy_set_header Host $host;
|
|
proxy_pass http://127.0.0.1:1235;
|
|
proxy_redirect off;
|
|
}
|
|
}
|
|
|
|
server {
|
|
listen 443 ssl;
|
|
server_name nails.nhcarrigan.com;
|
|
ssl_certificate /etc/letsencrypt/live/nails.nhcarrigan.com/fullchain.pem;
|
|
ssl_certificate_key /etc/letsencrypt/live/nails.nhcarrigan.com/privkey.pem;
|
|
|
|
root /home/naomi/nails/client/dist/client/browser;
|
|
|
|
location / {
|
|
index index.html;
|
|
try_files $uri $uri/ /index.html;
|
|
}
|
|
|
|
location ~* \.(js|css)$ {
|
|
try_files $uri $uri/ @rewrite;
|
|
}
|
|
}
|