Add explicit POST action and no-JavaScript guidance to admin login, prevent password query logging by hardening the Nginx config template, and enforce secure form behavior in CI. Production runtime form rebuilt/smoke tested; historical query log values redacted and Nginx now logs only $uri, not args. Core builds passed; optional GitHub artifact upload remains blocked by quota.
34 lines
1.4 KiB
Plaintext
34 lines
1.4 KiB
Plaintext
# OpenGenesisLINK SYS.API HTTPS on port 8850.
|
|
# Replace YOUR_DOMAIN with the actual ACME-validated FQDN.
|
|
# A VALID Let's Encrypt fullchain/key must exist BEFORE enabling this server.
|
|
# This proxy only terminates TLS; sys.api.dll listens on localhost:8851.
|
|
# Never include $request_uri, $args, $request, or $http_referer in this
|
|
# admin portal's access logs; invalid browser submissions may contain secrets.
|
|
log_format ogl_sysapi_noargs '$remote_addr - [$time_local] "$request_method $uri $server_protocol" $status $body_bytes_sent';
|
|
server {
|
|
access_log /var/log/nginx/ogl-sysapi-8850-access.log ogl_sysapi_noargs;
|
|
listen 8850 ssl;
|
|
listen [::]:8850 ssl;
|
|
server_name YOUR_DOMAIN;
|
|
|
|
ssl_certificate /etc/letsencrypt/live/YOUR_DOMAIN/fullchain.pem;
|
|
ssl_certificate_key /etc/letsencrypt/live/YOUR_DOMAIN/privkey.pem;
|
|
ssl_protocols TLSv1.2 TLSv1.3;
|
|
ssl_session_tickets off;
|
|
add_header Strict-Transport-Security "max-age=31536000" always;
|
|
|
|
client_max_body_size 32k;
|
|
proxy_connect_timeout 5s;
|
|
proxy_read_timeout 15s;
|
|
|
|
location / {
|
|
proxy_pass http://127.0.0.1:8851;
|
|
proxy_set_header Host 127.0.0.1:8851;
|
|
proxy_set_header X-Forwarded-Host YOUR_DOMAIN:8850;
|
|
proxy_set_header X-Forwarded-Proto https;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
proxy_set_header X-Forwarded-For $remote_addr;
|
|
proxy_set_header Authorization $http_authorization;
|
|
}
|
|
}
|