aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorPitu <[email protected]>2020-05-10 21:51:49 +0900
committerPitu <[email protected]>2020-05-10 21:51:49 +0900
commit5df8485c5e81d16a3b1a4195b629dbd72d11dfb5 (patch)
treec81997172f3c0ca9ead662ac4db39f3f6eac6a71 /docs
parentFeat: implement lazy loading for waterfall view (diff)
downloadhost.fuwn.me-5df8485c5e81d16a3b1a4195b629dbd72d11dfb5.tar.xz
host.fuwn.me-5df8485c5e81d16a3b1a4195b629dbd72d11dfb5.zip
updated nginx sample config
Diffstat (limited to 'docs')
-rw-r--r--docs/nginx.md31
1 files changed, 3 insertions, 28 deletions
diff --git a/docs/nginx.md b/docs/nginx.md
index 592e8f6..48aaa26 100644
--- a/docs/nginx.md
+++ b/docs/nginx.md
@@ -1,9 +1,8 @@
### Nginx config for SSL
-Make sure that:
-- `backend` and `frontend` ports match your wizard config
+Make sure that:
+- `backend` port matches your wizard config
- `client_max_body_size` matches your wizard config
- You replace `your.domain` where pertinent
-- You point the `root` folder to your uploads folder
```nginx
@@ -11,10 +10,6 @@ upstream backend {
server 127.0.0.1:5000;
}
-upstream frontend {
- server 127.0.0.1:5005;
-}
-
server {
listen 80;
listen [::]:80;
@@ -55,27 +50,7 @@ server {
client_max_body_size 90M;
client_body_timeout 600s;
- location / {
- add_header Access-Control-Allow-Origin *;
- root /path/to/your/uploads;
- try_files $uri @proxy;
- }
-
- location @proxy {
- proxy_set_header X-Real-IP $remote_addr;
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- proxy_set_header Host $http_host;
- proxy_set_header X-NginX-Proxy true;
- proxy_pass http://frontend;
- proxy_redirect off;
- proxy_http_version 1.1;
- proxy_set_header Upgrade $http_upgrade;
- proxy_set_header Connection "upgrade";
- proxy_redirect off;
- proxy_set_header X-Forwarded-Proto $scheme;
- }
-
- location /api {
+ location /api {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;