_toctree
This commit is contained in:
parent
94e6467e54
commit
4376dfe409
38 changed files with 50 additions and 58 deletions
37
in/public/web/nginx/serve.rst
Normal file
37
in/public/web/nginx/serve.rst
Normal file
|
@ -0,0 +1,37 @@
|
|||
*****
|
||||
Serve
|
||||
*****
|
||||
|
||||
* /etc/nginx/sites-available/…
|
||||
|
||||
.. code::
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
server_name _;
|
||||
location "/mirrors" {
|
||||
root "/";
|
||||
autoindex on;
|
||||
}
|
||||
location "/" {
|
||||
root "/data/http";
|
||||
autoindex on;
|
||||
}
|
||||
}
|
||||
server {
|
||||
listen 443 ssl http2;
|
||||
server_name "sous.domaine.tld";
|
||||
ssl_certificate "/etc/nginx/certificates/nom.crt";
|
||||
ssl_certificate_key "/etc/nginx/certificates/nom.key";
|
||||
location "/static" {
|
||||
root "/data/https";
|
||||
default_type "text/html";
|
||||
index "index.html";
|
||||
}
|
||||
location "/" {
|
||||
proxy_pass "http://127.0.0.1:8069";
|
||||
proxy_redirect off;
|
||||
proxy_set_header Host $host;
|
||||
}
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue