Add Caddyfile? #1

Closed
opened 2024-08-02 16:12:38 +00:00 by blitzwing · 15 comments

This service is pretty awesome and I'd love to host it myself! I've found it very useful for safely transferring files.
However, I'm pretty silly and only mainly rely on built-in Caddy to host my SearXNG instance, so I was wondering if a tweakable Caddyfile could be added to this for the sake of convenience! If you can't do that, that's fine. Getting some Caddy advice for hosting this in general would be a help as well.

This service is pretty awesome and I'd love to host it myself! I've found it very useful for safely transferring files. However, I'm pretty silly and only mainly rely on built-in Caddy to host my SearXNG instance, so I was wondering if a tweakable Caddyfile could be added to this for the sake of convenience! If you can't do that, that's fine. Getting some Caddy advice for hosting this in general would be a help as well.
Owner

Hi - glad to hear that you find it useful! I'm not sure if adding a Caddyfile to the repo is really that useful, because it's as simple as it gets. Here's what it looks like for transfer.coffee:

transfer.coffee www.transfer.coffee {
        reverse_proxy localhost:8105
}

tracker.transfer.coffee {
        reverse_proxy localhost:8106
}

So I don't think adding a Caddyfile to the repo really has that much of a benefit. Instead, if you have any questions setting things up, just ask here or on Matrix and I'll try to help you out.

Hi - glad to hear that you find it useful! I'm not sure if adding a Caddyfile to the repo is really that useful, because it's as simple as it gets. Here's what it looks like for transfer.coffee: ``` transfer.coffee www.transfer.coffee { reverse_proxy localhost:8105 } tracker.transfer.coffee { reverse_proxy localhost:8106 } ``` So I don't think adding a Caddyfile to the repo really has that much of a benefit. Instead, if you have any questions setting things up, just ask here or on Matrix and I'll try to help you out.
kumi closed this issue 2024-08-02 17:32:39 +00:00
Author

Thanks for the help! However, this seems to not be working.
image
Here's my POV with the VPS.
And my transfer.blitzw.in domain just leads to a default Caddy page.
image

Thanks for the help! However, this seems to not be working. ![image](/attachments/73ce61cd-1356-47c1-ac8a-1dda03ad46ba) Here's my POV with the VPS. And my transfer.blitzw.in domain just leads to a default Caddy page. ![image](/attachments/050ac80c-f8d3-4389-9d0f-17c2a510c697)
Owner

That looks like Caddy is already running when you execute caddy run. So you probably want to use caddy reload (or reload the systemd service, if you're using that).

That looks like Caddy is already running when you execute `caddy run`. So you probably want to use `caddy reload` (or reload the systemd service, if you're using that).
Author

It just looks like a blank page now when I use that command.
image

It just looks like a blank page now when I use that command. ![image](/attachments/5b743ef5-8dc9-4d1a-a418-2b664d768564)
Owner

Getting closer then. 😅 Are the two npm processes running?

Getting closer then. 😅 Are the two npm processes running?
Author

Just installed NPM (forgot to do so beforehand, I'm such a goober), restarted my machine, and reloaded Caddy. However, it's still blank.
image

Just installed NPM (forgot to do so beforehand, I'm such a goober), restarted my machine, and reloaded Caddy. However, it's still blank. ![image](/attachments/de85d8f9-913d-4616-b446-28f103ec0f9a)
Author

Thanks for clearing that up! It's running now.

Thanks for clearing that up! It's running now.
Owner

🥳

🥳
Author

Okay, I got it running, but the tracker doesn't seem to be working. I got my friends to test it but no files are being transferred/uploaded.
Capture

Okay, I got it running, but the tracker doesn't seem to be working. I got my friends to test it but no files are being transferred/uploaded. <img width="613" alt="Capture" src="/attachments/7411b101-9fe3-440a-9cc2-70fb1ecf53a5">
Owner

Which begs the question: Is the tracker running? How are you running it?

Which begs the question: Is the tracker running? How are you running it?
Author

Restarted it again, and did the npm run tracker command, but I can't figure out how to do the commands after without ctrl + C. I'm not too familiar with this.
typing . .env and npm start didn't have any response. I did make an .env file.
image

Restarted it again, and did the npm run tracker command, but I can't figure out how to do the commands after without ctrl + C. I'm not too familiar with this. typing . .env and npm start didn't have any response. I did make an .env file. ![image](/attachments/700d7e32-0a70-474e-a00b-7c03098dba0d)
Owner

I'd really suggest setting up systemd services for the two processes, examples are in the contrib/systemd directory. But for now, you can do something like screen -dmS tracker npm run tracker. That will put the process in the background.

I'd really suggest setting up systemd services for the two processes, examples are in the contrib/systemd directory. But for now, you can do something like `screen -dmS tracker npm run tracker`. That will put the process in the background.
Author

Thank you so much for the help: it actually works now!!

Thank you so much for the help: it actually works now!!
Owner

Whoop! 🥳

Whoop! 🥳
Author

image

![image](/attachments/0d1817ad-2b99-4639-9f2c-e44a65bafb85)
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: PrivateCoffee/transfer.coffee#1
No description provided.