aboutsummaryrefslogtreecommitdiff
path: root/deploy
diff options
context:
space:
mode:
Diffstat (limited to 'deploy')
-rw-r--r--deploy/blind-uploader.service5
-rw-r--r--deploy/nginx-blind-uploader.conf6
2 files changed, 7 insertions, 4 deletions
diff --git a/deploy/blind-uploader.service b/deploy/blind-uploader.service
index 1258131..8bbba05 100644
--- a/deploy/blind-uploader.service
+++ b/deploy/blind-uploader.service
@@ -1,11 +1,12 @@
[Unit]
-Description=Private Drop anonymous image uploader
+Description=Private Drop image uploader
Documentation=file:/opt/blind-uploader/README.md
After=network.target
[Service]
Type=simple
-DynamicUser=yes
+User=www-data
+Group=www-data
WorkingDirectory=/opt/blind-uploader
ExecStart=/usr/bin/python3 /opt/blind-uploader/server.py
Restart=on-failure
diff --git a/deploy/nginx-blind-uploader.conf b/deploy/nginx-blind-uploader.conf
index 0473434..79f7bc7 100644
--- a/deploy/nginx-blind-uploader.conf
+++ b/deploy/nginx-blind-uploader.conf
@@ -1,7 +1,9 @@
# Replace upload.example.com and add your TLS configuration before production use.
server {
- listen 80;
- listen [::]:80;
+ listen 443 ssl;
+ listen [::]:443 ssl;
+ http2 on;
+
server_name upload.example.com;
# Allows a 10 MiB image plus multipart form overhead.