Closed FKouhai closed 1 year ago
Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.
Hello,
I have created a middleware that stripes /setup from the request, although its more usable it still is unoperable since it constantly tries to redirect to /setup causing some request to be duplicated, is there any recommended middleware of traefik to handle snipe it correctly?
This issue has been automatically marked as stale because it has not had recent activity. This might be due to missing feedback from OP. It will be closed if no further activity occurs. Thank you for your contributions.
is there any advance regarding this issue?
You could add
# deny access to setup after installation is complete
location /setup {
deny all;
}
to the default site conf here https://github.com/linuxserver/docker-snipe-it/blob/02f6d22981d2e54b3230760e7ac1ac91dae526cb/root/defaults/nginx/site-confs/default.conf.sample#L36 after completing the initial setup.
We could include this config commented out with a note about uncommenting it after completing setup. I'll look into it.
@nemchik thanks for the solution i think the issue can be closed now :)
Is there an existing issue for this?
Current Behavior
Hello everyone,
After spending some hours trying to deploy snipe it behind traefik in a k8s cluster, I have detected that from time to time im getting redirected to the setup page when navigating between the different places in the web ui, i have set up an ingress route which is a k8s crd provisioned by traefik, I have other services like grafana running in the same cluster and with a similar ingress route and dont have any problem at all,
Probably I'm missing something, is there any recommended middleware for snipe it or any environment variable that disallows /setup ?
Kind regards
Fran
Expected Behavior
When accessing snipeit.redacted.com the access should be nominal same as with navigating through the web ui
Steps To Reproduce
Environment
CPU architecture
x86-64
Docker creation
Container logs