-
Notifications
You must be signed in to change notification settings - Fork 793
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
Hosting Hastebin on Virtual Directory using NGINX #156
Comments
I am not a nginx guy, but try adding the Check out https://github.com/seejohnrun/haste-server/wiki/Installation#nginx and http://nginx.org/en/docs/http/ngx_http_core_module.html#location |
It works now! Sadly the actual pasting part doesnt :( I get this message: https://gyazo.com/0f237d18d027970f6b4bcc91b709f9d2 |
Do you have redis running? |
No, I'm using a file storage system. If needed I can switch to redis. |
I'd suggest moving to redis as you will have the added advantage of setting expiration. But if you want file storage, change your logging to |
I'm using haste server behind an nginx proxy. I didn't have to do anything elaborate (haste is running locally on 7777):
I have a redis backend as well, but that was inconsequential as nginx doesn't need to know about it. EDIT - try putting a trailing slash at the end of your proxy_pass. |
@Vexentric Ping |
Hi,
|
This still seems to be an issue. When trying to put Hastebin under a virtual directory such as /hastebin/, references in the frontend seem to be absolute assuming hastebin is at /. Setting "host" in config.js to "127.0.0.1/hastebin" also doesn't solve the issue (a solution that was required for me on another similar application). The solution (hack) proposed here is no longer an option since the repository holding that patch was deleted. |
This issue is stale because it has been open for 30 days with no activity. |
The app now supports baseUrl: #140 |
I have my main website on the / location for my website and I wanted to host hastebin on /paste.
I tried it using ngix with the following location config:
location /paste { proxy_pass http://localhost:8080; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_connect_timeout 150; proxy_send_timeout 100; proxy_read_timeout 100; proxy_buffers 4 32k; client_max_body_size 8m; client_body_buffer_size 128k; }
However, it just turns out looking like this;
https://gyazo.com/0f50b9261a43a6cdc9e21d043190d7d6
Could someone help me fix this? (If it is possible to do)
The text was updated successfully, but these errors were encountered: