mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
bepasty: New app for file upload and sharing
Signed-off-by: James Valleroy <jvalleroy@mailbox.org> Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
1 parent
66537b1f9c
commit
7edc2f4e13
17 files changed
+738
No files matched your search
@@ -0,0 +1,16 @@
|
||||
##
|
||||
## On all sites, provide bepasty on a path: /bepasty
|
||||
##
|
||||
|
||||
# Redirect /bepasty to /bepasty/
|
||||
<Location ~ ^/bepasty$>
|
||||
<IfModule mod_rewrite.c>
|
||||
RewriteEngine On
|
||||
RewriteCond %{REQUEST_URI} ^/bepasty$
|
||||
RewriteRule .* /bepasty/ [R=301,L]
|
||||
</IfModule>
|
||||
</Location>
|
||||
|
||||
<Location /bepasty/>
|
||||
ProxyPass unix:/run/uwsgi/app/bepasty-freedombox/socket|uwsgi://bepasty/
|
||||
</Location>
|
||||
@@ -0,0 +1 @@
|
||||
plinth.modules.bepasty
|
||||
@@ -0,0 +1,31 @@
|
||||
# Use packaged file after #966314 is done.
|
||||
|
||||
[uwsgi]
|
||||
# Who will run the code
|
||||
uid = bepasty
|
||||
gid = bepasty
|
||||
|
||||
# disable logging for privacy
|
||||
#disable-logging = true
|
||||
|
||||
autoload = false
|
||||
|
||||
# Number of workers (usually CPU count)
|
||||
workers = 2
|
||||
|
||||
# The right granted on the created socket
|
||||
chmod-socket = 666
|
||||
|
||||
# Plugin to use and interpretor config
|
||||
single-interpreter = true
|
||||
master = true
|
||||
plugin = python3
|
||||
enable-threads = true
|
||||
lazy-apps = true
|
||||
|
||||
# Module to import
|
||||
module = bepasty.wsgi
|
||||
env = BEPASTY_CONFIG=/etc/bepasty-freedombox.conf
|
||||
|
||||
pythonpath = /usr/lib/python3/dist-packages/
|
||||
buffer-size = 32768
|
||||
Reference in new issue
Block a user