2 # Example of NGINX as reverse-proxy terminating an HTTPS connection.
4 # This is not a complete NGINX config.
6 # Please refer to NGINX docs
15 # assuming Friendica runs on port 8080
17 if ( $scheme != https ) {
18 # Force Redirect to HTTPS
19 return 302 https://$host$uri;
21 proxy_pass http://localhost:8080;
23 proxy_set_header Host $host;
24 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
25 proxy_set_header Forwarded "for=$proxy_add_x_forwarded_for; proto=$scheme";