28 lines
895 B
Plaintext
28 lines
895 B
Plaintext
# Example: single nginx "web hub" for multiple non-chain hostnames (static roots).
|
|
# Copy to an LXC as e.g. /etc/nginx/sites-enabled/sankofa-web-hub.conf and adjust paths.
|
|
# TLS: typically terminate at NPM; LAN can stay HTTP to this host.
|
|
|
|
map $host $sankofa_site_root {
|
|
portal.sankofa.nexus /var/www/portal;
|
|
admin.sankofa.nexus /var/www/admin;
|
|
sankofa.nexus /var/www/corporate;
|
|
www.sankofa.nexus /var/www/corporate;
|
|
# clients.example.nexus /var/www/clients/example;
|
|
default /var/www/default;
|
|
}
|
|
|
|
server {
|
|
listen 80;
|
|
server_name portal.sankofa.nexus admin.sankofa.nexus sankofa.nexus www.sankofa.nexus;
|
|
|
|
root $sankofa_site_root;
|
|
index index.html;
|
|
|
|
location / {
|
|
try_files $uri $uri/ /index.html;
|
|
}
|
|
|
|
add_header X-Content-Type-Options nosniff;
|
|
add_header Referrer-Policy strict-origin-when-cross-origin;
|
|
}
|