github.com/pyroscope-io/pyroscope@v0.37.3-0.20230725203016-5f6947968bd0/pkg/server/testdata/Caddyfile (about)

     1  {
     2      http_port 8080
     3      auto_https off
     4  }
     5  
     6  http://localhost {
     7      redir /long/path/pyroscope /long/path/pyroscope/
     8      route /long/path/pyroscope* {
     9          uri strip_prefix pyroscope
    10          reverse_proxy pyroscope:4040
    11      }
    12      redir /pyroscope /pyroscope/
    13      route /pyroscope* {
    14          uri strip_prefix pyroscope
    15          reverse_proxy pyroscope:4040
    16      }
    17      file_server
    18  }
    19  
    20  http://oauth-test-proxy.pyroscope.io {
    21      redir /long/path/pyroscope /long/path/pyroscope/
    22      route /long/path/pyroscope* {
    23          uri strip_prefix long/path/pyroscope
    24          reverse_proxy pyroscope:4040
    25      }
    26      redir /pyroscope /pyroscope/
    27      route /pyroscope* {
    28          uri strip_prefix pyroscope
    29          reverse_proxy pyroscope:4040
    30      }
    31      file_server
    32  }