administrator@astra-77777:~$ sudo sed -n '1,80p' /etc/nginx/sites-enabled/nsms.conf
server {
listen 444 ssl;
server_name vpn.it-enigma-ufa.local;
set $management_services_host 127.0.0.1:26022;
set $key_center_web_api 127.0.0.1:26021;
client_max_body_size 1024m;
error_page 497 https://$host:$server_port$request_uri;
proxy_hide_header X-Powered-By;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_cache_bypass $http_upgrade;
proxy_buffer_size 128k;
proxy_buffers 4 256k;
proxy_busy_buffers_size 256k;
# Integrity check from SMP
location ~ ^/api/integrity$ {
rewrite /api/integrity /api/internal/integrity break;
proxy_pass http://$key_center_web_api;
proxy_http_version 1.1;
proxy_set_header Connection $http_connection;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
proxy_request_buffering off;
add_header Cache-Control "no-cache, no-store, must-revalidate" always;
add_header Pragma "no-cache" always;
add_header Expires "0" always;
allow 127.0.0.1;
allow 192.168.67.120;
deny all;
}
location ~ ^/api/integrity/ {
rewrite /api/integrity/(.*) /api/internal/integrity/$1 break;
proxy_pass http://$key_center_web_api;
proxy_http_version 1.1;
proxy_set_header Connection $http_connection;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
proxy_request_buffering off;
add_header Cache-Control "no-cache, no-store, must-revalidate" always;
add_header Pragma "no-cache" always;
add_header Expires "0" always;
allow 127.0.0.1;
allow 192.168.67.120;
deny all;
}
location /api/kc/ {
proxy_pass http://$key_center_web_api;
proxy_http_version 1.1;
proxy_set_header Connection $http_connection;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
proxy_request_buffering off;
add_header Cache-Control "no-cache, no-store, must-revalidate" always;
add_header Pragma "no-cache" always;
add_header Expires "0" always;
}
location /api/internal/integrity {
proxy_pass http://$management_services_host;
proxy_http_version 1.1;
proxy_set_header Connection $http_connection;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
proxy_request_buffering off;
add_header Cache-Control "no-cache, no-store, must-revalidate" always;
add_header Pragma "no-cache" always;
add_header Expires "0" always;
allow 127.0.0.1;
administrator@astra-77777:~$