2018-06-10 15:49:53 +02:00
|
|
|
upstream filehoster {
|
2023-12-12 13:20:44 +01:00
|
|
|
# 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 {
|
2023-12-12 13:20:44 +01:00
|
|
|
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;
|
|
|
|
|
2023-12-12 13:20:44 +01:00
|
|
|
# Include the location in your ShareX_Storage base_url
|
2018-06-10 15:49:53 +02:00
|
|
|
location /f/ {
|
2023-12-12 13:20:44 +01:00
|
|
|
# Should match ShareX_Storage max_filesize
|
2018-06-10 15:49:53 +02:00
|
|
|
client_max_body_size 100M;
|
2023-12-12 13:20:44 +01:00
|
|
|
proxy_pass http://filehoster;
|
2018-06-10 15:49:53 +02:00
|
|
|
}
|
|
|
|
}
|