[GH-ISSUE #173] Sample config for caddy #136

Closed
opened 2026-02-25 21:31:17 +03:00 by kerem · 2 comments
Owner

Originally created by @ThisIsTenou on GitHub (Oct 16, 2020).
Original GitHub issue: https://github.com/ciur/papermerge/issues/173

Hey there,

I've created a sample config for use with caddy instead of nginx. I just love caddy.
Feel free to add it to the docs, if you're interested. The setup process is the same as with nginx, just without nginx. It's still using gunicorn.

my.domain.tld:80 {
  root * /opt/PapermergeDMS
  @notStatic not path /media* /static*
  reverse_proxy @notStatic 127.0.0.1:9001
  file_server
  encode zstd gzip
  log {
    level error
  }
}
Originally created by @ThisIsTenou on GitHub (Oct 16, 2020). Original GitHub issue: https://github.com/ciur/papermerge/issues/173 Hey there, I've created a sample config for use with caddy instead of nginx. I just love caddy. Feel free to add it to the docs, if you're interested. The setup process is the same as with nginx, just without nginx. It's still using gunicorn. ``` my.domain.tld:80 { root * /opt/PapermergeDMS @notStatic not path /media* /static* reverse_proxy @notStatic 127.0.0.1:9001 file_server encode zstd gzip log { level error } } ```
kerem closed this issue 2026-02-25 21:31:17 +03:00
Author
Owner

@ciur commented on GitHub (Oct 16, 2020):

oh, man, thank you! I didn't know about caddy web server. Really cool project! I will play with it lil bit.

<!-- gh-comment-id:710285184 --> @ciur commented on GitHub (Oct 16, 2020): oh, man, thank you! I didn't know about caddy web server. Really cool project! I will play with it lil bit.
Author
Owner

@ThisIsTenou commented on GitHub (Oct 16, 2020):

No problem! Caddy really is amazing. Fast and simple, with a huge amount of features.

This would be the config with custom ssl certificates:

my.domain.tld {
  root * /opt/PapermergeDMS
  @notStatic not path /media* /static*
  reverse_proxy @notStatic 127.0.0.1:9001
  file_server
  tls /path/to/certfile.crt /path/to/keyfile.key
  encode zstd gzip
  log {
    level error
  }
}

So yeah, as you can see, it's really that simple. If you have further questions, feel free to ask!

<!-- gh-comment-id:710452112 --> @ThisIsTenou commented on GitHub (Oct 16, 2020): No problem! Caddy really is amazing. Fast and simple, with a huge amount of features. This would be the config with custom ssl certificates: ``` my.domain.tld { root * /opt/PapermergeDMS @notStatic not path /media* /static* reverse_proxy @notStatic 127.0.0.1:9001 file_server tls /path/to/certfile.crt /path/to/keyfile.key encode zstd gzip log { level error } } ``` So yeah, as you can see, it's really that simple. If you have further questions, feel free to ask!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
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
starred/papermerge#136
No description provided.