Update u_e-nginx.md
Dieser Commit ist enthalten in:
Ursprung
54aed163c1
Commit
55491544a4
1 geänderte Dateien mit 24 neuen und 0 gelöschten Zeilen
|
@ -4,6 +4,30 @@ To create persistent (over updates) sites hosted by mailcow: dockerized, a new s
|
|||
nano data/conf/nginx/my_custom_site.conf
|
||||
```
|
||||
|
||||
A good template to begin with.
|
||||
|
||||
``` hl_lines="9"
|
||||
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 mysite.example.org;
|
||||
|
||||
location ^~ /.well-known/acme-challenge/ {
|
||||
allow all;
|
||||
default_type "text/plain";
|
||||
}
|
||||
|
||||
if ($scheme = http) {
|
||||
return 301 https://$server_name$request_uri;
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
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:
|
||||
|
|
Laden …
In neuem Issue referenzieren