Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Categories are not listed :: snipe behind apache2 Proxy #16016

Open
DonKingMat opened this issue Jan 1, 2025 · 4 comments
Open

Categories are not listed :: snipe behind apache2 Proxy #16016

DonKingMat opened this issue Jan 1, 2025 · 4 comments
Labels
🚫 not a bug This issue is not a bug

Comments

@DonKingMat
Copy link

DonKingMat commented Jan 1, 2025

Fresh installation without any errors on Ubuntu 24.04.1 LTS (Noble Numbat)
Some example licenses added
categoriy can be set but can not be choosed from previously created. The dotted circle does not move and no previous categories will be shown.

There must be something more to configure within the apache2 config? I was following your guide first which makes it in general accessible behind a proxy but not that specific drop-down function.

grafik

apache2 config (secrets are hided by Q):

<VirtualHost Q.Q.Q.Q:443>
    # ProxyPreserveHost On
    RewriteEngine On
    SSLEngine on
    SSLProxyEngine On
    SSLProxyVerify none
    SSLProxyCheckPeerCN off
    SSLProxyCheckPeerName off
    SSLProxyCheckPeerExpire off
    ServerName snipe.Q.Q:443
    RequestHeader set X-Forwarded-Proto "https"
    ProxyPass / http://Q.Q.Q/
    ProxyPassReverse / http://Q.Q.Q/
    SSLCertificateFile /etc/pki/QQQ/Q.Q.crt
    SSLCertificateKeyFile /etc/pki/QQQ/Q.Q.key
    SSLCertificateChainFile /etc/pki/QQQ/Q.Q.intermediate.crt
</VirtualHost>

snipe-it .env config snippet pointing to my reverse-proxy:

root@QQQ:/var/www/html/snipeit# grep PROX .env
APP_TRUSTED_PROXIES=Q.Q.Q.Q
root@QQQ:/var/www/html/snipeit#
Copy link

welcome bot commented Jan 1, 2025

👋 Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.

@snipe
Copy link
Owner

snipe commented Jan 6, 2025

Can you show me the browser console output when you try to use one of those dropdowns that fail?

@snipe snipe added the 🚫 not a bug This issue is not a bug label Jan 6, 2025
@leductho911
Copy link

image
I have same issue and upload to Discord too.

@snipe
Copy link
Owner

snipe commented Jan 6, 2025

@leductho911 In your case, the browser is telling you what's wrong - mixed content warning. It's loading the GUI page over https, but the javascript is loading over http.

Can you show me what your APP_URL is set to in your .env is? I see public in the web GUI URL, which should not be true in most cases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🚫 not a bug This issue is not a bug
Projects
None yet
Development

No branches or pull requests

3 participants