mirror of
https://git.proxmox.com/git/proxmox-offline-mirror
synced 2025-04-29 11:57:12 +00:00

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>
21 lines
576 B
Plaintext
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;
|
|
}
|
|
}
|
|
|