diff --git a/in/personal/server/index.rst b/in/personal/server/index.rst index b10437e..29f189d 100644 --- a/in/personal/server/index.rst +++ b/in/personal/server/index.rst @@ -297,8 +297,36 @@ Prepare a grub.cfg } } +Web +--- + +Sites +^^^^^ + +:: + + ssl_certificate /etc/nginx/rwx.work/bundle.crt; + ssl_certificate_key /etc/nginx/rwx.work/key.pem; + + server { + listen 443 ssl; + listen [::]:443 ssl; + server_name deb.rwx.work; + root /d/mirrors/apt-mirror/debian; + autoindex on; + } + + server { + listen 443 ssl default_server; + listen [::]:443 ssl default_server; + server_name .rwx.work; + location / { + proxy_pass http://10.0.0.1/; + } + } + Certificate ------------ +^^^^^^^^^^^ * /etc/nginx/rwx.work * key.pem