File: nginx-simple.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 (11 lines) | stat: -rw-r--r-- 484 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
# json2file-go simple 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 remove location prefix (the location is removed from
    # the requests, we don't need to adjust the J2F_URL_PREFIX)
    proxy_pass  http://unix:/run/json2file-go/socket:/;
    include     proxy_params;
}