-
Notifications
You must be signed in to change notification settings - Fork 47
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
pastebinit: wrong protocol, wrong url #117
Comments
had a quick look, but couldn't find the culprit, neither in pastebinit, nor in bepasty. |
Still does not work:
|
Our docs for pastebinit usage/configuration with bepasty: https://bepasty-server.readthedocs.io/en/latest/user-cli.html#pastebinit |
Did anyone ever figure this out? I'm running into the same thing with |
I kept digging over here, and found there we're getting an error on the Looks like this commit fixed it: 2fe9f8f
|
Yes, if you do not have that commit in the running code, it will cause this exception if a upload post request is received and misses the maxlife-related entries (which is likely the case for a lot of clients without special support for that). |
On my Freedombox (Debian-based) running But, I'm still getting urls with my config: [pastebin]
basename = https://libre.example.com
regexp = https://libre.example.com/bepasty/
[format]
content = text
title = filename
format = contenttype
page = page
password = token
[defaults]
page = +upload
|
So most of the URL is correct, just the protocol still wrong? Wrong protocol can be due to reverse proxy, because the wsgi app is unaware of https. |
Great point, and I'm now testing with curl and seeing the right output. INPUT:
OUTPUT:
|
https://werkzeug.palletsprojects.com/en/1.0.x/middleware/proxy_fix/ try that for the http -> https fix! |
If you succeed, a small pull request for our docs with a snippet and linking to that docs would be nice. This is a common problem for reverse proxy users. |
Will do! Thanks for the quick response and help!
…On Fri, Mar 5, 2021 at 10:05 AM TW ***@***.***> wrote:
If you succeed, a small pull request for our docs with a snippet and
linking to that docs would be nice. This is a common problem for reverse
proxy users.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#117 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABWDJL6VFQMLTHSYGQUBTLTCDXK7ANCNFSM4AXFKWGA>
.
--
David Rasch
[email protected]
|
when pasting to a https bepasty (with nginx reverse proxy doing the https), pastebinit shows a http link after pasting. also it shows a wrong (generic, upload) url instead of the specific download url.
The text was updated successfully, but these errors were encountered: