Sven
Sven
PPostiz
Created by Support on 10/22/2024 in #💭│support-tickets
Ticket: Update Nginx config to reflect port 5001 changes
What exactly do you want to achieve? There is no way to change the port of the postiz-app to 5000. If you wanted to do that you would've to change the Caddyfile (caddy is used as a reverse proxy to expose postiz-app on port 5000). But why do you want to change it inside the container? Isn't it enough to expose it at port 5001 e.g.
ports:
- 5001:5000
ports:
- 5001:5000
Running
running docker exec -it [ID-container] netstat -tuln
running docker exec -it [ID-container] netstat -tuln
will not show the 5001 in this case as it's still running at 5000 (inside the container), but you should be able to access it at 5001
7 replies
PPostiz
Created by Support on 10/16/2024 in #💭│support-tickets
Ticket: Frontend Upload Error with Cloudflare Storage Integration
@xcons in case you haven't read everything. I also started implementing it 'properly' (making singlepart uploads work), but that requires additional changes to handle when the upload has finished which I haven't done (didn't want to make a lot of additonal changes).
77 replies
PPostiz
Created by Support on 10/16/2024 in #💭│support-tickets
Ticket: Frontend Upload Error with Cloudflare Storage Integration
@Nevo David you may have alraedy noticed, someone else tested my fix and it fixed cloudflare for them (https://discord.com/channels/1243410146097500202/1296546635245158442)
77 replies
PPostiz
Created by Support on 10/17/2024 in #💭│support-tickets
Ticket: Cannot Use Pictures in Local Installation
Would be great to have another user to confirm that this fixes the R2 issue (could speed up the process to get the PR accepted 🙂 )
15 replies
PPostiz
Created by Support on 10/17/2024 in #💭│support-tickets
Ticket: Cannot Use Pictures in Local Installation
Just another user here... so take everything I say with a grain of salt 😉 For the R2 issue there should be a fix coming (hopefully soon), created a PR with a fix earlier today. If you want to test it you can get it by using image: dhsven/postiz:latest
15 replies
PPostiz
Created by Support on 10/16/2024 in #💭│support-tickets
Ticket: Frontend Upload Error with Cloudflare Storage Integration
only cloudflare
77 replies
PPostiz
Created by Support on 10/16/2024 in #💭│support-tickets
Ticket: Frontend Upload Error with Cloudflare Storage Integration
Small update. Noticed that the change caused a type error when building a docker container. Fixed the issue and it compiles fine now.
77 replies
PPostiz
Created by Support on 10/16/2024 in #💭│support-tickets
Ticket: Frontend Upload Error with Cloudflare Storage Integration
And about pros/cons. The Uppy docs (https://uppy.io/docs/aws-s3/) have a nice summary of it:
Multipart uploads start to become valuable for larger files (100 MiB+) as it uploads a single object as a set of parts. This has certain benefits, such as improved throughput (uploading parts in parallel) and quick recovery from network issues (only the failed parts need to be retried). The downside is request overhead, as it needs to do creation, signing (unless you are signing on the client), and completion requests besides the upload requests. For example, if you are uploading files that are only a couple kilobytes with a 100ms roundtrip latency, you are spending 400ms on overhead and only a few milliseconds on uploading.
77 replies
PPostiz
Created by Support on 10/16/2024 in #💭│support-tickets
Ticket: Frontend Upload Error with Cloudflare Storage Integration
I would've finished it, but that would require a bit more changes and raises the question if the handling for completion of multipart uploads shoudl also be changed (would make senes to keep it consistent)
77 replies
PPostiz
Created by Support on 10/16/2024 in #💭│support-tickets
Ticket: Frontend Upload Error with Cloudflare Storage Integration
You can look at https://github.com/gitroomhq/postiz-app/compare/main...SvenRH:postiz-app:fix-cloudflare you can see that I implemented the presigning for single chunk uploads. Just the beavour when the upload is finished is not done there (so the added file is never added to postiz)
77 replies
PPostiz
Created by Support on 10/16/2024 in #💭│support-tickets
Ticket: Frontend Upload Error with Cloudflare Storage Integration
Yeah, multipart requires more calls. each part (I think they are each 5MB) needs to be presigned so causing a lot more calls. With single chunk there is only on presigning needed.
77 replies
PPostiz
Created by Support on 10/16/2024 in #💭│support-tickets
Ticket: Frontend Upload Error with Cloudflare Storage Integration
PR has been created
77 replies
PPostiz
Created by Support on 10/16/2024 in #💭│support-tickets
Ticket: Frontend Upload Error with Cloudflare Storage Integration
give me a few minutes, just wanted to check locally again and messed up something with my environment
77 replies
PPostiz
Created by Support on 10/16/2024 in #💭│support-tickets
Ticket: Frontend Upload Error with Cloudflare Storage Integration
no idea. I can only go by what I see and what teh documentation of uppy says should happen.
77 replies
PPostiz
Created by Support on 10/16/2024 in #💭│support-tickets
Ticket: Frontend Upload Error with Cloudflare Storage Integration
You should be able to tset it yourself. When you try to upload a file smaller tahn 100MB it will try to upload singlepart and that fails
77 replies
PPostiz
Created by Support on 10/16/2024 in #💭│support-tickets
Ticket: Frontend Upload Error with Cloudflare Storage Integration
sure. When not using multipart the upload works different. Uppy doesnt' do all the multipart upload callbacks arent' used (createMultipartUpload etc.). In this case it tries to use he getUploadParameters callback (which is not defined) and as this doesn't exist it will try to use the endpoint (so sending via a server). So the two possible solutions ended up being 1. send everythign as multipart 2. implement getUploadParameters
77 replies
PPostiz
Created by Support on 10/16/2024 in #💭│support-tickets
Ticket: Frontend Upload Error with Cloudflare Storage Integration
Sure, was just waiting for your feedback (if you want the simple solution or the more 'correct' one)
77 replies
PPostiz
Created by Support on 10/16/2024 in #💭│support-tickets
Ticket: Frontend Upload Error with Cloudflare Storage Integration
It did yesterday in dev. 😉 As I said earlier, taht is a bit more a 'hack' than implementing dingleparts uploads properly, but it's an easy fix
77 replies
PPostiz
Created by Support on 10/16/2024 in #💭│support-tickets
Ticket: Frontend Upload Error with Cloudflare Storage Integration
Also here a version with the simpler version that enables multipart uploads for all files https://github.com/SvenRH/postiz-app/tree/fix-coudflare-altnernate
77 replies
PPostiz
Created by Support on 10/16/2024 in #💭│support-tickets
Ticket: Frontend Upload Error with Cloudflare Storage Integration
And another update on that, just noticed that it saves it to the media server on 'complete-multipart-upload', which isn't called for singlepart uploads (and there seems to be no such callback for singlepart uploads) So there probably needs to be another endpoint for finishing the singlepart files that needs to be called by the frontend (probably from uppy2.on('upload-success'...) At this point the question becomes if it's worth even handling singlepart uploads or just just always force multipart to keep things simple
77 replies