This repository was archived by the owner on May 3, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Sample NGINX Configuration
Lucca Greschner edited this page Jul 14, 2023
·
3 revisions
The following configuration file can be used to deliver the frontend loader. Note that this configuration is different from the one delivering the backend application as these two parts can theoretically be hosted on two separate machines.
server {
listen 80;
server_name <Your_Hostname>;
location /.well-known/ {
root /var/www/letsencrypt/.well-known/; # Only needed if using let's encrypt certificates
}
location / {
return 301 https://$host$request_uri;
}
}
server {
listen 443 ssl;
server_name <Your_Hostname>;
gzip on;
gzip_types application/json;
ssl_certificate <Your_Certificate>;
ssl_certificate_key <Your_Certificate_Key>;
ssl_session_timeout 1d;
ssl_session_cache shared:MozSSL:10m;
ssl_session_tickets off;
ssl_protocols TLSv1.3;
ssl_prefer_server_ciphers off;
# HSTS (ngx_http_headers_module is required)
add_header Strict-Transport-Security "max-age=63072000" always;
location / {
root /var/www/frontend/; # Please adjust if you choose to deploy your frontend loader files in another location.
index index.html index.htm;
try_files $uri $uri/ /index.html;
}
}- Home
- Backend Documentation
- Frontend Documentation
- Protocol Documentation
- Reflection