Update u_e-nginx.md
Dieser Commit ist enthalten in:
Ursprung
aae8782f54
Commit
b573b7cd7a
1 geänderte Dateien mit 34 neuen und 0 gelöschten Zeilen
|
@ -28,6 +28,40 @@ server {
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Another example with a reverse proxy configuration:
|
||||||
|
|
||||||
|
``` hl_lines="9,21"
|
||||||
|
server {
|
||||||
|
ssl_certificate /etc/ssl/mail/cert.pem;
|
||||||
|
ssl_certificate_key /etc/ssl/mail/key.pem;
|
||||||
|
index index.php index.html;
|
||||||
|
client_max_body_size 0;
|
||||||
|
root /web;
|
||||||
|
include /etc/nginx/conf.d/listen_plain.active;
|
||||||
|
include /etc/nginx/conf.d/listen_ssl.active;
|
||||||
|
server_name example.domain.tld;
|
||||||
|
|
||||||
|
location ^~ /.well-known/acme-challenge/ {
|
||||||
|
allow all;
|
||||||
|
default_type "text/plain";
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($scheme = http) {
|
||||||
|
return 301 https://$host$request_uri;
|
||||||
|
}
|
||||||
|
|
||||||
|
location / {
|
||||||
|
proxy_pass http://127.0.0.1:3000/;
|
||||||
|
proxy_set_header Host $http_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;
|
||||||
|
client_max_body_size 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
The filename is not important, as long as the filename carries a .conf extension.
|
The filename is not important, as long as the filename carries a .conf extension.
|
||||||
|
|
||||||
It is also possible to extend the configuration of the default file `site.conf` file:
|
It is also possible to extend the configuration of the default file `site.conf` file:
|
||||||
|
|
Laden …
In neuem Issue referenzieren