proxmox-offline-mirror/docs/examples/nginx-conf
Stoiko Ivanov f5d631e307 docs: add minimal sample nginx config
if users want to use their offline medium via http in their internal
network.

nginx config is based off the one we use for download.proxmox.com.

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
2022-09-12 09:39:59 +02:00

21 lines
576 B
Plaintext

# with the correct dns setup and path this corresponds to a sources.lists entry
# deb [ check-valid-until=false ] http://proxmox-offline-mirror.domain.example/<mirror-name>/<snapshot-timestamp> <codename> <suite>
server {
listen 80 default_server;
listen [::]:80 default_server;
server_name proxmox-offline-mirror.domain.example;
root /path/to/medium;
disable_symlinks off;
autoindex on;
error_log /var/log/nginx/proxmox-offline-mirror.error.log;
access_log /var/log/nginx/proxmox-offline-mirror.access.log;
location / {
try_files $uri $uri/ =404;
}
}