nginx
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| nginx [2021/04/29 08:25] – created utedass | nginx [2022/09/12 00:30] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 3: | Line 3: | ||
| [[https:// | [[https:// | ||
| + | [[https:// | ||
| + | ====== Site configuration ====== | ||
| + | |||
| + | ===== Proxy ===== | ||
| + | ==== Owncloud/ | ||
| + | |||
| + | <code nginx> | ||
| + | location / { | ||
| + | # Nextcloud spesific proxy | ||
| + | proxy_pass_header Server; | ||
| + | proxy_set_header Host $host; | ||
| + | proxy_set_header X-Real-IP $remote_addr; | ||
| + | proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
| + | proxy_set_header X-Forwarded-Proto $scheme; | ||
| + | proxy_set_header X-Forwarded-host $host; | ||
| + | | ||
| + | proxy_pass_header Authorization; | ||
| + | | ||
| + | proxy_pass http:// | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | ==== Other ==== | ||
| + | |||
| + | <code nginx> | ||
| + | location / { | ||
| + | proxy_pass http:// | ||
| + | proxy_http_version 1.1; | ||
| + | proxy_set_header Upgrade $http_upgrade; | ||
| + | proxy_set_header Connection ' | ||
| + | proxy_set_header Host $host; | ||
| + | proxy_cache_bypass $http_upgrade; | ||
| + | } | ||
| + | </ | ||
nginx.1619684703.txt.gz · Last modified: 2022/09/12 00:30 (external edit)
