File: nginx-transparent.conf

package info (click to toggle)
json2file-go 1.15
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 184 kB
  • sloc: sh: 298; makefile: 10
file content (12 lines) | stat: -rw-r--r-- 557 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
# json2file-go transparent config
location /json/ {
    # If we don't set tokens in a directory (i.e. if we set J2F_DIRLIST to ":")
    # or if we want extra security we can add additional access controls here
    # (allow/deny directives, basic auth, etc.)

    # Configure proxy to keep the location prefix (the J2F_URL_PREFIX should be
    # '/json/' in this case, that can be done executing the following command: 
    # echo "/json/" > /etc/json2file-go/url_prefix)
    proxy_pass  http://unix:/run/json2file-go/socket;
    include     proxy_params;
}