From 493b77124818ebe9f3bd06e14bde55dfe602a9e5 Mon Sep 17 00:00:00 2001 From: Francois Andrieu Date: Apr 18 2023 02:53:11 +0000 Subject: websites: add well-known for Flathub verification Related: https://pagure.io/fedora-infrastructure/issue/11217 --- diff --git a/roles/fedora-web/main/files/.well-known-org.flathub.VerifiedApps.txt b/roles/fedora-web/main/files/.well-known-org.flathub.VerifiedApps.txt new file mode 100644 index 0000000..9890fe5 --- /dev/null +++ b/roles/fedora-web/main/files/.well-known-org.flathub.VerifiedApps.txt @@ -0,0 +1 @@ +bff1e08b-7f4e-4b97-b765-106904657e3c diff --git a/roles/fedora-web/main/files/flathub-verified.conf b/roles/fedora-web/main/files/flathub-verified.conf new file mode 100644 index 0000000..16a831d --- /dev/null +++ b/roles/fedora-web/main/files/flathub-verified.conf @@ -0,0 +1,2 @@ +Alias /.well-known/org.flathub.VerifiedApps.txt /srv/web/.well-known-org.flathub.VerifiedApps.txt + diff --git a/roles/fedora-web/main/tasks/main.yml b/roles/fedora-web/main/tasks/main.yml index a76a39d..91b21e1 100644 --- a/roles/fedora-web/main/tasks/main.yml +++ b/roles/fedora-web/main/tasks/main.yml @@ -58,6 +58,7 @@ - deflate.conf - mattdm-google-validate.conf - matrix.conf + - flathub-verified.conf notify: - reload proxyhttpd tags: @@ -158,3 +159,17 @@ - fedora-web - fedora-web/main - fedora-web/matrix + +# setup well-known for flathub verification +- name: Create a file for flathub verification + copy: + dest: /srv/web/.well-known-org.flathub.VerifiedApps.txt + src: .well-known-org.flathub.VerifiedApps.txt + owner: root + group: root + mode: 0644 + setype: httpd_sys_content_t + tags: + - fedora-web + - fedora-web/main + - fedora-web/flathub