forked from Gardener/ShareX_Storage
BluBb_mADe
6faac9742b
- thrown out the multi-domain support, instead you can now specify the full base url in the config - improved config docs - changed authorization to follow the standard Bearer Token pattern - link response is now simple json - updated and modernized nginx config example - reworked config and argument parsing - removed unnecessary extra file write buffer layer - removed no-cache response header. (why did I do this?) - various minor improvements - clarified hash length limit to be 32 (16 bytes, one aes block)
23 lines
534 B
Plaintext
23 lines
534 B
Plaintext
upstream filehoster {
|
|
# the hostname/ip and port on which the sharex_server script is reachable
|
|
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;
|
|
|
|
server_name your-domain.net;
|
|
|
|
# Include the location in your ShareX_Storage base_url
|
|
location /f/ {
|
|
# Should match ShareX_Storage max_filesize
|
|
client_max_body_size 100M;
|
|
proxy_pass http://filehoster;
|
|
}
|
|
}
|