Stranger in a strange land

1. The problem I’m having:

unable to find files to edit

2. Error messages and/or full log output:

to noob to answer

PASTE OVER THIS, BETWEEN THE ``` LINES.
Please use the preview pane to ensure it looks nice.

3. Caddy version:

to noob to answer

4. How I installed and ran Caddy:

This is about the only part of this template I can use and I don’t feel comfortable here already with these strict guidelines,

But I do need help and will at least try

First, I have no idea what caddy is and am confused, what I need help with may be to elementary for this site but… I may not be alone and may well help others to speak up

I only found caddy giving nostr a try, I followed the instructions here:

https://nutcroft.com/blog/how-to-run-your-own-nostr-relay/

I made it through to “apt install caddy” and if I go to my IP I see the angle sheet “caddy works”

But I can’t find any caddy files to edit

image

I hope my ignorance has not offended anyone and that I can learn what this is about

a. System environment:

b. Command:

PASTE OVER THIS, BETWEEN THE ``` LINES.
Please use the preview pane to ensure it looks nice.

c. Service/unit/compose file:

PASTE OVER THIS, BETWEEN THE ``` LINES.
Please use the preview pane to ensure it looks nice.

d. My complete Caddy config:

PASTE OVER THIS, BETWEEN THE ``` LINES.
Please use the preview pane to ensure it looks nice.

5. Links to relevant resources:

Caddy is a general purpose webserver. It’s similar to Apache or Nginx. That guide you linked uses it as a reverse proxy (i.e. a server that sits in front of another server/app) to automate TLS setup (so you have HTTPS instead of HTTP).

Make sure to read through the homepage:

That guide covers it, your config is at /etc/caddy/Caddyfile.

Make sure to follow our official installation instructions:

And then follow this to use it:

For configuration, start here:

2 Likes

Thanks for all that, I never tried to just nano /etc/caddy/Caddyfile which was a big help, unfortunately I got conflicting info, tried both, neither worked, but I think its a nostr issue and not one to bothered with here

I don’t know what to do with that. Please elaborate. What’s the problem? Show logs, show error messages, show what you tried.

2 Likes

I can try,

When I began the IP direct worked (caddy read it works) but not the url, even with DNS directing A setting

as I recall that page (caddy page it works page) (or somewhere) it read to change the 80: to my url and also one other setting, a file directory, and then restart

As the url still didn’t work I then tried what the nostr page directed

# /etc/caddy/Caddyfile

yourdomain.com:443 {
    reverse_proxy 127.0.0.1:8080

    tls youremail+nostr@example.com {
        on_demand
    }

    log {
        output file /var/log/caddy/nostr.log {
            roll_size 1gb
            roll_keep 1
            roll_keep_for 720h
        }
    }
}

and then I lost the caddy works page when viewing from the IP

Is there any kind of error log you can give us?

1 Like

If people here are willing to help I’m willing to provide whatever is needed on my end including starting over, Caddy itself is active so I don’t expect errors related to that, as I’ve said I’m a noob, this is an expedition of sorts, I heard of Nostr and that lead me here to Caddy, I just done’t want to trouble anyone here if its not desired, I can not PM anyone either so feel I’m perhaps muddying the board.

We’re all happy to help, here. The error logs are necessary to provide a solution, and it will indicate if the problem lies within a Caddy configuration or something else. Lots of the guys here understand how other services interact with Caddy. I, however, don’t know anything about Nostr.

Have you tried looking here for potential solutions?

1 Like

Thank you (all)

I’m going to delete my Nostr and cease for now, prioritize, had a rocky start here but pleased to report I’m very happy with this board and looking forward to finding out more about Caddy software :+1:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.