1 # Example NGINX configuration to proxy-pass requests
\r
2 # to public-inbox-httpd or to a standalone PSGI/Plack server.
\r
3 # The daemon is assumed to be running locally on port 8001.
\r
4 # Adjust ssl certificate paths if you use any, or remove
\r
5 # the ssl configuration directives if you don't.
\r
10 access_log /var/log/nginx/public-inbox-httpd_access.log;
\r
11 error_log /var/log/nginx/public-inbox-httpd_error.log;
\r
13 location ~* ^/(.*)$ {
\r
14 proxy_set_header HOST $host;
\r
15 proxy_set_header X-Real-IP $remote_addr;
\r
16 proxy_set_header X-Forwarded-Proto $scheme;
\r
17 proxy_pass http://127.0.0.1:8001$request_uri;
\r
21 ssl_certificate /path/to/certificate.pem;
\r
22 ssl_certificate_key /path/to/certificate_key.pem;
\r