mirror of
https://github.com/friendica/friendica
synced 2025-04-24 09:50:11 +00:00
it is documenation, right? :-)
Signed-off-by: Roland Häder <roland@mxchange.org>
This commit is contained in:
parent
09384119b1
commit
e61b8f667e
4 changed files with 0 additions and 0 deletions
37
doc/server-config/sample-nginx-reverse-proxy.config
Normal file
37
doc/server-config/sample-nginx-reverse-proxy.config
Normal file
|
@ -0,0 +1,37 @@
|
|||
#
|
||||
# Example of NGINX as reverse-proxy terminating an HTTPS connection.
|
||||
#
|
||||
# This is not a complete NGINX config.
|
||||
#
|
||||
# Please refer to NGINX docs
|
||||
#
|
||||
|
||||
# Note provided by Gabe R.: if you are using nginx as proxy server for Apache2
|
||||
# make sure your nginx config DOES NOT contain the following
|
||||
# -----
|
||||
# location ~ /.well-known {
|
||||
# allow all;
|
||||
# }
|
||||
# -----
|
||||
...
|
||||
|
||||
server {
|
||||
|
||||
...
|
||||
|
||||
# assuming Friendica runs on port 8080
|
||||
location / {
|
||||
if ( $scheme != https ) {
|
||||
# Force Redirect to HTTPS
|
||||
return 302 https://$host$uri;
|
||||
}
|
||||
proxy_pass http://localhost:8080;
|
||||
proxy_redirect off;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header Forwarded "for=$proxy_add_x_forwarded_for; proto=$scheme";
|
||||
}
|
||||
|
||||
...
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue