FOP2 Behind Nginx Proxy SSL
Hi, any tutorial to connect FOP2 behind nginx as proxy?
This is my setup:
server {
listen 80;
server_name xxx.com;
return 301 https://$server_name$request_uri;
}
server {
listen 443 ssl;
server_name xxx.com;
include /etc/nginx/mime.types;
root /var/www/fop2;
index index.php index.html index.htm;
ssl_certificate /etc/ssl/certs/bundle.pem;
ssl_certificate_key /etc/ssl/certs/bundle.pem;
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location ~ \.php$ {
include fastcgi_params;
fastcgi_pass 127.0.0.1:9000;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param SCRIPT_NAME $fastcgi_script_name;
}
}
and I have setup the SSL in fop2.cfg too :
ssl_certificate_file=/etc/ssl/certs/xxx.crt
ssl_certificate_key_file=/etc/certs/xxx.key
I can open the web but websocket seems error wss://xxx.com:44445
Logs from F12
[1709112480782] setvar variable context ok (ok), but not authorized? What to do ?
VM2479:1 [1709112481725] 1
VM2479:1 [1709112483352] 2
VM2479:1 [1709112485358] 3
VM2479:1 [1709112487361] 4
VM2479:1 [1709112489356] 5
VM2479:1 [1709112490360] 6
VM2479:1 [1709112490361] connectxml
VM2479:1 [1709112490361] intento conectar web socket en wss://xxx.com:4445
VM2479:1 [1709112490362] Websocket is not yet ready, wait for it instead of reattempt