ShareX_Storage/nginx_example.conf

23 lines
534 B
Plaintext
Raw Normal View History

2018-06-10 15:49:53 +02:00
upstream filehoster {
# the hostname/ip and port on which the sharex_server script is reachable
2018-06-10 15:49:53 +02:00
server file_hoster:80;
}
server {
listen 443 ssl;
listen [::]:443 ssl;
http2 on;
ssl_certificate /path/to/fullchain.pem;
ssl_certificate_key /path/to/privkey.pem;
2018-06-10 15:49:53 +02:00
server_name your-domain.net;
# Include the location in your ShareX_Storage base_url
2018-06-10 15:49:53 +02:00
location /f/ {
# Should match ShareX_Storage max_filesize
2018-06-10 15:49:53 +02:00
client_max_body_size 100M;
proxy_pass http://filehoster;
2018-06-10 15:49:53 +02:00
}
}