Comments (9)
I'll try to get something together this week
from haste-server.
Currently not supported due to https://github.com/seejohnrun/haste-server/blob/master/server.js#L113
Would be easy to add a root_path param to config
from haste-server.
Thanks. I will try that.
from haste-server.
As it turns out: it works.
I patched it but the patch didn't go down the way it should.
On the client side the subdirectory becomes part of the key that is used to handle the file. So instead of "$key" you get something like "subdirectory/$key" which is kinda annoying and can only be fixed by changing the routes in the main server. They have to be change anyway to support "$subdir/$key" but in the end they need to support "$subdir/$subdir/$key" because of the mess that happens on the client side.
It's also a problem to get the new subfolder to the client part without patching stuff. I had to patch the application.js file to make the requests go to the right place.
So far it doesn't seem easy to just add a root_path variable.
Any hints or tips that could help me to implement it and I'm offering the patch :)
KR,
G.
from haste-server.
Thanks for the update @Grimeton - you can follow along with #53 for updates on subdirectory modifications (should be done soon)
from haste-server.
I really like the haste-server, but the lacking subdirectory support unfortunately is a show-stopper in my environment. Are there any plans on supporting subdirectories soon?
from haste-server.
I'm trying to get haste-server working with a lighttpd reverse proxy. What I want is to browse to 'mydomain.com/p/' where my haste-server will greet me.
I have the following set up:
$HTTP["url"] =~ "^/p/" {
proxy.server = (
"" => (
(
"host" => "",
"port" =>
)
)
)
}
Where myhost and port are set properly. With this enabled I get a partial response. Meaning, I only receive the title of the page, and nothing else. Can anyone help me with this ?
from haste-server.
Problem sorted - I've described how to do it at http://www.ctrl-alt-del.cc/2014/11/haste-server-base-url-hackpatch.html with working configs for HAProxy, Lighttpd, Nginx and Apache.
Pull request coming up of course.
from haste-server.
anything new in this topic? Is subdir enabled so we can put it behind proxy ?
from haste-server.
Related Issues (20)
- Hastebin IPFS Support HOT 2
- Disable automatic closing of issues HOT 1
- self-hosted instace, buttons greyed out
- nginx config need help please HOT 1
- alpine image HOT 2
- Tried to host haste-server on a Plesk webspace, error occured HOT 2
- 503 error while post in /documents HOT 2
- daemonize haste-server HOT 3
- Important announcement: Soon a new version of Hastebin will be launched! HOT 15
- bun
- Haste server sends 413 for requests over 1mb
- Release containers in a public repo HOT 5
- Authentication failed (MongoDB) HOT 2
- pastebin HOT 1
- 1. Remove deprecation warning from existing trading-api hybrid websocket endpoint. HOT 3
- this lost almost all of the reasons why it was any good in the refactor. HOT 2
- zipped files too large failing to be retrieved with raw HOT 5
- Helloworld HOT 3
- Unable to use file as storage method in docker HOT 2
- Insecure default: phonetic alphabet with keyLength=10 is brute-forcible HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from haste-server.