Codebase list bepasty / 3000798
Improved examples and added nginx and lighttpd configurations. Elena Grandi 2 years ago
4 changed file(s) with 52 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 bepasty (1.0.0-2) UNRELEASED; urgency=medium
1
2 * Improved examples and added nginx and lighttpd configurations.
3
4 -- Elena Grandi <valhalla@debian.org> Tue, 04 Jan 2022 15:54:33 +0100
5
06 bepasty (1.0.0-1) unstable; urgency=medium
17
28 * New upstream release.
22 ServerName paste.example.org
33 ErrorLog /var/log/apache2/paste.example.org-error.log
44 CustomLog /var/log/apache2/paste.example.org-access.log combined
5
6 AddDefaultCharset utf-8
57
68 WSGIDaemonProcess bepasty
79 WSGIScriptAlias / /srv/bepasty/bepasty.wsgi
0 server.modules += ("mod_scgi")
1 server.modules += ("mod_rewrite")
2
3 scgi.protocol = "uwsgi"
4
5 $HTTP["host"] =~ "paste.example.org" {
6 server.name = "paste.example.org"
7 server.document-root = "/srv/bepasty/files"
8 alias.url += (
9 "/static/" => "/usr/lib/python3/dist-packages/bepasty/static/",
10 )
11 url.redirect += (
12 "^/$" => "/bepasty/",
13 )
14 $HTTP["url"] !~ "^/static" {
15 scgi.server = (
16 "/" => (
17 (
18 "socket" => "/run/uwsgi/app/bepasty/socket",
19 "check-local" => "disable"
20 )
21 )
22 )
23 }
24 }
0 server {
1 listen 80;
2 listen [::]:80;
3
4 access_log /var/log/nginx/paste.example.org-access.log;
5 error_log /var/log/nginx/paste.example.org-error.log;
6
7 client_max_body_size 32M;
8
9 location / {
10 charset utf-8;
11 uwsgi_pass unix:///run/uwsgi/app/bepasty/socket;
12 include uwsgi_params;
13 }
14
15 location /static/ {
16 alias /usr/lib/python3/dist-packages/bepasty/static/;
17 }
18 }