File: lighttpd_bepasty.conf.example

package info (click to toggle)
bepasty 1.2.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 852 kB
  • sloc: python: 2,978; javascript: 1,468; makefile: 172; sh: 30
file content (25 lines) | stat: -rw-r--r-- 641 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
server.modules += ("mod_scgi")
server.modules += ("mod_rewrite")

scgi.protocol = "uwsgi"

$HTTP["host"] =~ "paste.example.org" {
    server.name          = "paste.example.org"
    server.document-root = "/srv/bepasty/files"
    alias.url += (
        "/static/" => "/usr/lib/python3/dist-packages/bepasty/static/",
    )
    url.redirect += (
        "^/$" => "/bepasty/",
    )                                                          
    $HTTP["url"] !~ "^/static" {                               
	scgi.server = (
	    "/" => (
		(
		   "socket" => "/run/uwsgi/app/bepasty/socket",
		   "check-local" => "disable"
		)
	    )
	)
    }
}