ngx-acme-demo/nginx.conf
Ava Hahn b16f8dd1c6 update pebble.conf
Signed-off-by: Ava Hahn <a.hahn@f5.com>
2025-09-25 00:47:34 +00:00

46 lines
795 B
Nginx Configuration File

worker_processes 1;
error_log /dev/stdout debug;
pid /tmp/pid;
daemon off;
events {}
http {
resolver 8.8.8.8:53;
acme_issuer local_pebble {
uri https://0.0.0.0:14000/dir;
contact ava@sunnypup.io;
state_path /tmp;
accept_terms_of_service;
ssl_verify off;
}
acme_shared_zone zone=ngx_acme_shared:1M;
server {
listen 443 ssl;
server_name mylocalwebsite.com;
acme_certificate local_pebble;
ssl_certificate $acme_certificate;
ssl_certificate_key $acme_certificate_key;
# do not parse the certificate on each request
ssl_certificate_cache max=2;
location / {
proxy_pass http://echo.sunnypup.io;
}
}
server {
# listener on port 80 is required to process ACME HTTP-01 challenges
listen 80;
location / {
return 404;
}
}
}