location / {
proxy_pass https://theta-learn.ru:3010;
proxy_set_header Host $host;
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_read_timeout 90;
proxy_connect_timeout 90;
}
принимаются они на https://theta-learn.ru:3010
proxy pass http://theta-learn.ru:3010
proxy set header Host $host;
типа BLF и т.д., т.к. там нужно другую прошивку - MPP.
ports:
- "8443:443"
curl -Ik https://localhost:8443
curl -I https://localhost
C:\Users\admin>curl -I https://google.com
HTTP/1.1 301 Moved Permanently
Location: https://www.google.com/
Content-Type: text/html; charset=UTF-8
Content-Security-Policy-Report-Only: object-src 'none';base-uri 'self';script-src 'nonce-qk3SP0SEwr6fw02wj2EXZg' 'strict-dynamic' 'report-sample' 'unsafe-eval' 'unsafe-inline' https: http:;report-uri https://csp.withgoogle.com/csp/gws/other-hp
Date: Thu, 27 Jun 2024 14:18:45 GMT
Expires: Sat, 27 Jul 2024 14:18:45 GMT
Cache-Control: public, max-age=2592000
Server: gws
Content-Length: 220
X-XSS-Protection: 0
X-Frame-Options: SAMEORIGIN
Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000