SnipeIT: Update config from IP to Domain and set up SSL with or without reverse proxy. #671
Replies: 4 comments 1 reply
-
Hello Michel, thank you for the post-installation guide. I have followed it completely but I have a problem when using Nginx Proxy Manager: I have correctly created the A record in my domain manager. What am I missing? |
Beta Was this translation helpful? Give feedback.
-
I forgot to attach the message I receive when I try to connect via https ![]() |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
To change how SnipeIT is reachable you need to change two files.
The first one you need to alter is the nginx config file.
vim /etc/nginx/conf.d/snipeit.conf
Here you need to change the value server_name. Change snipeit.example.com to your domain name.
server_name snipeit.example.com
The second file you need to change is the SnipeIT Webapp config.
vim nano /opt/snipe-it/.env
Here you need to change the value **APP_URL". Change http://snipeit.exampel.com to your domain name.
APP_URL=http://snipeit.example.com
This are alle the changes needed for HTTP.
For HTTPS with reverse Proxy you need to set
proxy_set_header X-Forwarded-Proto $scheme;
(NGINX) orRequestHeader set X-Forwarded-Proto "https"
(APACHE) at you proxy config. Below as an exmple are the settings for Nginx Proxy ManagerAnd in the SnipeIT Webapp config you need to set APP_TRUSTED_PROXIES to the IP-Address of your proxy.
vim nano /opt/snipe-it/.env
To get HTTPS working without reverse proxy you need to change the nginx config file.
And again change the server_name from snipeit.exampe.com to your own domain.
vim /etc/nginx/conf.d/snipeit.conf
Replace all content with:
Beta Was this translation helpful? Give feedback.
All reactions