I follow the README and run up the docker compose up -d command. I configured an nginx reverse proxy site as below:
server {
listen 443 ssl http2;
server_name preprint.myuniversity.com;
ssl_certificate /etc/ssl/fullchain.pem;
ssl_certificate_key /etc/ssl/privkey.pem;
access_log /var/log/nginx/preprint.myuniversity.com.access.log;
error_log /var/log/nginx/preprint.myuniversity.com.error.log;
location / {
proxy_pass http://127.0.0.1:8080;
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_redirect off;
proxy_buffering off;
proxy_set_header Connection "";
}
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ {
expires 1y;
add_header Cache-Control "public, immutable";
}
}
I also edit the file ./volumes/config/pkp.config.inc.php, set base_url = “``https://preprint.myuniversity/ops”, then access https://preprint.myuniversity/ops, it says 404 not found as below, which is from OPS system rather than nginx:
