From 9086cbbc572a329e8ac3990b71e37956373e898d Mon Sep 17 00:00:00 2001 From: Kebert Xela Date: Tue, 21 May 2019 09:00:25 -0700 Subject: [PATCH] Empty space lints --- README.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 3b46bb6..960b607 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ Self-hosted file/media sharing website. ### Screenshots - + Get release and run @@ -24,7 +24,7 @@ Get release and run 1. Grab the latest binary from the [releases](https://github.com/andreimarcu/linx-server/releases) 2. Run ```./linx-server``` - + Usage ----- @@ -50,7 +50,7 @@ allowhotlink = true - ```-refererpolicy "..."``` -- Referrer-Policy header for pages (default is "same-origin") - ```-filereferrerpolicy "..."``` -- Referrer-Policy header for files (default is "same-origin") - ```-xframeoptions "..." ``` -- X-Frame-Options header (default is "SAMEORIGIN") -- ```-remoteuploads``` -- (optionally) enable remote uploads (/upload?url=https://...) +- ```-remoteuploads``` -- (optionally) enable remote uploads (/upload?url=https://...) - ```-nologs``` -- (optionally) disable request logs in stdout - ```-force-random-filename``` -- (optionally) force the use of random filenames @@ -69,15 +69,15 @@ The following storage backends are available: |S3|Use with any S3-compatible provider.
This implementation will stream files through the linx instance (every download will request and stream the file from the S3 bucket).

For high-traffic environments, one might consider using an external caching layer such as described [in this article](https://blog.sentry.io/2017/03/01/dodging-s3-downtime-with-nginx-and-haproxy.html).|```-s3-endpoint https://...``` -- S3 endpoint
```-s3-region us-east-1``` -- S3 region
```-s3-bucket mybucket``` -- S3 bucket to use for files and metadata
```-s3-force-path-style``` (optional) -- force path-style addresing (e.g. https://s3.amazonaws.com/linx/example.txt)

Environment variables to provide:
```AWS_ACCESS_KEY_ID``` -- the S3 access key
```AWS_SECRET_ACCESS_KEY ``` -- the S3 secret key
```AWS_SESSION_TOKEN``` (optional) -- the S3 session token| -#### SSL with built-in server +#### SSL with built-in server - ```-certfile path/to/your.crt``` -- Path to the ssl certificate (required if you want to use the https server) - ```-keyfile path/to/your.key``` -- Path to the ssl key (required if you want to use the https server) -#### Use with http proxy -- ```-realip``` -- let linx-server know you (nginx, etc) are providing the X-Real-IP and/or X-Forwarded-For headers. +#### Use with http proxy +- ```-realIP``` -- let linx-server know you (nginx, etc) are providing the X-Real-IP and/or X-Forwarded-For headers. #### Use with fastcgi -- ```-fastcgi``` -- serve through fastcgi +- ```-fastcgi``` -- serve through fastcgi Cleaning up expired files @@ -112,7 +112,7 @@ server { ... server_name yourlinx.example.org; ... - + client_max_body_size 4096M; location / { fastcgi_pass 127.0.0.1:8080;