Updated to version 1.1.0
This commit is contained in:
parent
d083cb7dc6
commit
7dc5b679ca
|
@ -38,16 +38,7 @@
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
|
|
||||||
# This is the maximum upload size, which roughly matches the maximum size of a video file
|
# Hard limit, PeerTube does not support videos > 8GB
|
||||||
# you can send via the API or the web interface. By default this is 8GB, but administrators
|
|
||||||
# can increase or decrease the limit. Currently there's no way to communicate this limit
|
|
||||||
# to users automatically, so you may want to leave a note in your instance 'about' page if
|
|
||||||
# you change this.
|
|
||||||
#
|
|
||||||
# Note that temporary space is needed equal to the total size of all concurrent uploads.
|
|
||||||
# This data gets stored in /var/lib/nginx by default, so you may want to put this directory
|
|
||||||
# on a dedicated filesystem.
|
|
||||||
#
|
|
||||||
client_max_body_size 8G;
|
client_max_body_size 8G;
|
||||||
proxy_connect_timeout 600;
|
proxy_connect_timeout 600;
|
||||||
proxy_send_timeout 600;
|
proxy_send_timeout 600;
|
||||||
|
@ -79,12 +70,9 @@
|
||||||
access_log off;
|
access_log off;
|
||||||
}
|
}
|
||||||
|
|
||||||
root /home/yunohost.app/__NAME__/storage;
|
alias /home/yunohost.app/__NAME__/storage/videos;
|
||||||
|
|
||||||
rewrite ^/static/webseed/(.*)$ /videos/$1 break;
|
|
||||||
rewrite ^/static/redundancy/(.*)$ /redundancy/$1 break;
|
|
||||||
|
|
||||||
try_files $uri /;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# Websocket tracker
|
# Websocket tracker
|
||||||
|
|
|
@ -16,19 +16,5 @@ StandardError=syslog
|
||||||
SyslogIdentifier=__APP__
|
SyslogIdentifier=__APP__
|
||||||
Restart=always
|
Restart=always
|
||||||
|
|
||||||
; Some security directives.
|
|
||||||
; Use private /tmp and /var/tmp folders inside a new file system namespace,
|
|
||||||
; which are discarded after the process stops.
|
|
||||||
PrivateTmp=true
|
|
||||||
; Mount /usr, /boot, and /etc as read-only for processes invoked by this service.
|
|
||||||
ProtectSystem=full
|
|
||||||
; Sets up a new /dev mount for the process and only adds API pseudo devices
|
|
||||||
; like /dev/null, /dev/zero or /dev/random but not physical devices. Disabled
|
|
||||||
; by default because it may not work on devices like the Raspberry Pi.
|
|
||||||
PrivateDevices=false
|
|
||||||
; Ensures that the service process and all its children can never gain new
|
|
||||||
; privileges through execve().
|
|
||||||
NoNewPrivileges=true
|
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|
Loading…
Reference in a new issue