server {
server_name 127.0.0.1;
listen 443 ssl http2;
ssl_certificate ssl/example.crt;
ssl_certificate_key ssl/example.key;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers HIGH:!aNULL:!MD5;
root /var/www/reviewboard/htdocs;
location / {
proxy_pass http://host.docker.internal:8080/;
proxy_set_header X-Forwarded-For $remote_addr;
add_header Access-Control-Allow-Origin *;
proxy_set_header Host $host;
}
location /media/ {
alias /var/www/reviewboard/htdocs/media/;
add_header Access-Control-Allow-Origin *;
expires max;
location ~ \.(html|htm|shtml|php)$ {
add_header Access-Control-Allow-Origin *;
types {}
default_type text/plain;
}
}
location /media/uploaded/ {
alias /var/www/reviewboard/htdocs/media/uploaded/;
add_header Access-Control-Allow-Origin *;
location ~ \.([sp]?html?|php\d?|phtm?|phps|pl|py|f?cgi|jsp|sh|rb) {
add_header Access-Control-Allow-Origin *;
}
}
location /static/ {
alias /var/www/reviewboard/htdocs/static/;
add_header Access-Control-Allow-Origin *;
expires max;
}
location /errordocs/ {
alias /var/www/reviewboard/htdocs/errordocs/;
add_header Access-Control-Allow-Origin *;
expires 30d;
}
}
-------
Can you guys tell me please what I'm doing wrong?
Thank you very much!