Commit 994f5e3e authored by Morten Linderud's avatar Morten Linderud 🏄 Committed by Kristian Klausen
Browse files

debuginfod: Add package listing

Displays packages

https://debuginfod.archlinux.org/packages/



Signed-off-by: Morten Linderud's avatarMorten Linderud <morten@linderud.pw>
parent d00a59ac
[Unit]
Description=Synchronize package list
[Service]
Type=oneshot
ExecStart=/usr/bin/bash -c "find /srv/ftp/pool/*-debug/ -type f -not -name *.sig > /srv/http/debuginfod/index.html"
[Unit]
Description=Sync package lists every hour
[Timer]
OnCalendar=hourly
AccuracySec=1m
Persistent=true
[Install]
WantedBy=timers.target
......@@ -16,6 +16,18 @@
notify:
- reload debuginfod
- name: create http directory for debuginfod website files
file: path=/srv/http/debuginfod state=directory owner=root group=root mode=0755
- name: install packagelist units
copy: src={{ item }} dest=/etc/systemd/system/{{ item }} owner=root group=root mode=0644
loop:
- packagelist.timer
- packagelist.service
- name: start and enable packagelist.timer
service: name=packagelist.timer enabled=yes state=started
- name: make nginx log dir
file: path=/var/log/nginx/{{ debuginfod_domain }} state=directory owner=root group=root mode=0755
......
......@@ -28,8 +28,16 @@ server {
ssl_certificate_key /etc/letsencrypt/live/{{ debuginfod_domain }}/privkey.pem;
ssl_trusted_certificate /etc/letsencrypt/live/{{ debuginfod_domain }}/chain.pem;
root /srv/http/debuginfod;
index index.html;
location / {
proxy_set_header X-Forwarded-For $remote_addr;
proxy_pass http://127.0.0.1:8002;
}
location /packages {
default_type "text/plain";
alias /srv/http/debuginfod/;
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment