-
-
Notifications
You must be signed in to change notification settings - Fork 249
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
Need help with nginx config #729
Comments
Hi @narenarora I'm not an nginx expert unfortunately :( This is my nginx config:
|
I even tried it with docker:
Still works fine :( |
Thank you @bugy for trying this out. Would you be able to try it with your reverse proxy and script server running on different hosts? That's the only difference I can think of between your setup and mine. Meanwhile, I will try to move my container to the same host that has my proxy and see if it works there. Feel free to call out if none of this makes sense. I am guessing it has something to do with Edit : Not a proxy / nginx expert either. Just guessing. |
Incase this is where the issue is, below is my {
"port": 5000,
"address": "0.0.0.0",
"title": "My Script Server",
"auth": {
"type": "htpasswd",
"htpasswd_path": "/auth/.htpasswd"
},
"access": {
"admin_users": [ "admin" ]
},
"callbacks": {
"notify_on_start": false,
"notify_on_finish": true,
"notification_fields": [ "execution_id", "script_name", "user", "audit_command", "exit_code" ],
"destinations": [
{
"type": "http",
"url": "http://ntfy/topic"
}
]
},
"logging": {
"execution_file": "$DATE-$ID.log",
"execution_date_format": "%y-%m-%d_%H-%M"
},
"security": {
"xsrf_protection": "token"
}
} |
If this helps .. this is my redirection log. Looks like once it hits $ curl -vL https://mydomain.com/myscripts 2>&1 | grep -i location
< location: https://mydomain.com/myscripts/
< location: http://mydomain.com/login.html?next=%2Fmyscripts%2F
< Location: https://mydomain.com/login.html?next=%2Fmyscripts%2F I did try to run the script-server container on the same host as the proxy, but same issue. All the proxy configs I have seen in the issues seem to be proxy running on the host directly, so Using a subdomain works, as expected. But I'd really like to find a solution for this using a subpath. |
I have script-server setup as a docker container on Server_B. I am modifying the container with my custom
Dockerfile
for 2 issues -Here is my
Dockerfile
anddocker-compose.yaml
I have Nginx Proxy Manager running in a docker container on Server_A. This is where my ports 80/443 are forwarded to.
Below is my config for using a subpath
However, this doesn't work for me. When I go to https://mydomain.com/myscripts/, I see it redirect to https://mydomain.com/index.html and then gives a 404 error.
This is what I see in the container logs (just noticed the timezone difference in the container timestamps, but I digress)
192.168.210.1
above is my internal docker IP.Any help to figure out the issue with my config would be great. Thank you!
The text was updated successfully, but these errors were encountered: