Replies: 3 comments
-
I haven't personally tried caddy, but the demo for Stump uses server {
listen 80;
server_name demo.stumpapp.dev;
location / {
return 301 https://$host$request_uri;
}
}
server {
listen 443 ssl;
server_name demo.stumpapp.dev;
ssl_certificate /path/to/fullchain.pem;
ssl_certificate_key /path/to/privkey.pem;
include /path/to/options-ssl-nginx.conf;
ssl_dhparam /path/to/ssl-dhparams.pem;
location / {
proxy_pass http://stump:10801;
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
} |
Beta Was this translation helpful? Give feedback.
0 replies
-
I tried stump just to test it and have caddy as my reverse proxy. I use a wildcard handle so maybe it is different from your deployment, but I still think this could help:
The certificate is issued from the global config that's why it isn't there. |
Beta Was this translation helpful? Give feedback.
0 replies
-
The simplest only port 80 setup for nginx: server {
server_name target_dns_name_recognized_on_your_network_or_ip;
# restrict access to local network only, if you want, need both lines:
#allow 10.0.1.0/24;
#deny all;
location / {
proxy_pass http://your_ip:10801;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
HI,
Did anyone manage to do this.
I have Caddy file with the following 👍
Does not work at all, any suggestions ?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions