Fabi
March 11, 2020, 6:05pm
1
Hi,
I installed Passbold in a Proxmox container. The container runs behind a “Ngnix reverse proxy”.
I have installed “Passbold” according to the instructions for Ubuntu.
I have the following error:
The browser does not load CSS or image files and in the console you can find errors:
Refused to load the image '<URL>' because it violates the following Content Security Policy directive: "img-src 'self'".
In the Passbolt Continer I made no further changes.
In the ReverseProxy the site-available/default file is configured that way.
server {
listen 80;
listen 443 ssl;
server_name passbolt.domain.de www.passbolt.domain.de
# ssl on;
ssl_certificate /etc/letsencrypt/live/domain.de/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/domain.de/privkey.pem;
access_log /var/log/nginx/passbolt.access.log;
error_log /var/log/nginx/passbolt.error.log;
if ($scheme = http) {
return 301 https://$host$request_uri;
}
location / {
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://passbolt.domain.de/;
}
The page looks like
A setup without CSS is also not possible, because the database cannot be accessed because of the error.
Hi @Fabi I would next look at the /etc/nginx/nginx.conf file in the reverse proxy for directives related to:
add_header Content-Security-Policy
Fabi
March 12, 2020, 6:58am
3
This is the nginx.conf
There is nothing about add_header.
user www-data;
worker_processes auto;
pid /run/nginx.pid;
include /etc/nginx/modules-enabled/*.conf;
events {
worker_connections 768;
# multi_accept on;
}
http {
##
# Basic Settings
##
sendfile on;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 65;
types_hash_max_size 2048;
# server_tokens off;
server_names_hash_bucket_size 128;
# server_name_in_redirect off;
include /etc/nginx/mime.types;
default_type application/octet-stream;
##
# SSL Settings
##
ssl_protocols TLSv1 TLSv1.1 TLSv1.2; # Dropping SSLv3, ref: POODLE
ssl_prefer_server_ciphers on;
##
# Logging Settings
##
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;
##
# Gzip Settings
##
gzip on;
#fastcgi_buffers_8 128k;
#fastcgi_buffer_size 256k;
fastcgi_buffers 8 128k;
fastcgi_buffer_size 256k;
# gzip_vary on;
# gzip_proxied any;
# gzip_comp_level 6;
# gzip_buffers 16 8k;
# gzip_http_version 1.1;
# gzip_types text/plain text/css application/json application/javascript tex$
##
# Virtual Host Configs
##
include /etc/nginx/conf.d/*.conf;
include /etc/nginx/sites-enabled/*;
}
What do I have to add.
@Fabi the reverse proxy 's proxy_pass line is typically an IP address. Try that instead.
system
Closed
March 17, 2020, 10:56am
5
This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.