-
Describe the problem/questionHi Everyone, My Thinking: The hope is that by only changing this it means that the links are now redirecting to the 2nd privatebin and that since the data directory is to be pulled from a mounted shared folder then it should work right? Well I tried to look for the code to adjust and, not a programmer, just change the baseUri in the privatebin.js on line 521? Below the part referencing the code for creating a pasteid value there's the part for SRI Token The problem with the above is that I then tried to actually edit the .js file, first just removing the comments at the top and it didn't break initially. I then tried to change the baseURi from earlier and now I'm getting the forever loading error. https://github.com/orgs/PrivateBin/discussions/1381 Did you use the FAQ section?
What you did?All information presented in Problem/Question. What happensNo response What should happenNo response Additional informationNo response Server addressNo response Server OSUbuntu 22 Server WebserverApache2 PrivateBin versionv1.7.3 Browser and versionNo response Local operating system and versionNo response Issue reproducibilityNo, I cannot reproduce it on https://privatebin.net. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
First of all, see https://github.com/PrivateBin/PrivateBin/wiki/FAQ#how-can-i-link-to-a-read-only-mode-where-users-cant-submit-pastes please, for how to properly setup such a system where only some users can submit a paste. Using two instances as you want is possible, but you could also achieve it with web server config etc. Secondly, if you adjust the JS files, you must regenerate the SRI hashes, yes. See the latest doc at https://github.com/PrivateBin/PrivateBin/wiki/Development#subresource-integrity-for-javascript-resources for that. For obvious reasons, you must do this after each change of them. You should get browser errors if they don't equal.
Maybe you have changes more than the SRI tokens, or so, so it cannot find them. As said, check your browser errors or HTML source code and compare them. It could also be a caching problem. Also, you can also leave the JS files as they are and only remove the HTML part for the new button instead. Actually, I would recommend this. It's easier and better to maintain. (Note still this can be circumvented by just doing manual requests, please see the doc linked before for how to fix that.) In the future, updating SRI hashes will be easier: #1372 |
Beta Was this translation helpful? Give feedback.
First of all, see https://github.com/PrivateBin/PrivateBin/wiki/FAQ#how-can-i-link-to-a-read-only-mode-where-users-cant-submit-pastes please, for how to properly setup such a system where only some users can submit a paste. Using two instances as you want is possible, but you could also achieve it with web server config etc.
Secondly, if you adjust the JS files, you must regenerate the SRI hashes, yes. See the latest doc at https://github.com/PrivateBin/PrivateBin/wiki/Development#subresource-integrity-for-javascript-resources for that. For obvious reasons, you must do this after each change of them. You should get browser errors if they don't equal.