snipe / snipe-it

A free open source IT asset/license management system
https://snipeitapp.com
GNU Affero General Public License v3.0
10.47k stars 3.07k forks source link

Logo Image not visible using reverse proxy via nginx #8648

Open baditaflorin opened 3 years ago

baditaflorin commented 3 years ago

Link to image http://127.0.0.1:6000/public/uploads/setting-logo-GkMHbeqdcx.jpg Accessing from other network but logo will still point to the localhost. Nginx configuration.

server {
        listen 80;
        listen [::]:80;

        server_name domain.com;
        return 301 https://domain.com$request_uri;

}
server {
        listen 443 ssl;
        listen [::]:443 ssl;
        server_name domain.com;
        location / {
                proxy_pass      http://localhost:6000;
                proxy_set_header X-Forwarded-Proto https;
                proxy_set_header Host $host;
                proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
                proxy_set_header X-Forwarded-Proto $scheme;

        }
        ssl_certificate /etc/letsencrypt/live/domain.com/fullchain.pem; 
        ssl_certificate_key /etc/letsencrypt/live/domain.com/privkey.pem; 
        include /etc/letsencrypt/options-ssl-nginx.conf; 
        ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; 
}

image

xam-ps commented 3 years ago

Do you use https? What's set in your .env file for APP_URL?