Commit fc4088d7 authored by Jakub Klinkovský's avatar Jakub Klinkovský Committed by Kristian Klausen
Browse files

Added robots.txt for archmanweb

parent dfc0ded3
User-agent: *
Disallow: /search?
Disallow: /listing?
Crawl-delay: 2
...@@ -65,6 +65,9 @@ ...@@ -65,6 +65,9 @@
register: config register: config
no_log: true no_log: true
- name: copy robots.txt
copy: src=robots.txt dest="{{ archmanweb_dir }}/repo/robots.txt" owner=root group=root mode=0644
- name: create archmanweb db user - name: create archmanweb db user
postgresql_user: name={{ archmanweb_db_user }} password={{ vault_archmanweb_db_password }} login_host="{{ archmanweb_db_host }}" login_password="{{ vault_postgres_users.postgres }}" encrypted=yes postgresql_user: name={{ archmanweb_db_user }} password={{ vault_archmanweb_db_password }} login_host="{{ archmanweb_db_host }}" login_password="{{ vault_postgres_users.postgres }}" encrypted=yes
no_log: true no_log: true
......
...@@ -41,6 +41,10 @@ server { ...@@ -41,6 +41,10 @@ server {
alias {{ archmanweb_dir }}/repo/collected_static/archlinux-common/favicon.ico; alias {{ archmanweb_dir }}/repo/collected_static/archlinux-common/favicon.ico;
} }
location = /robots.txt {
alias {{ archmanweb_dir }}/repo/robots.txt;
}
# Client-cache for Django's static assets # Client-cache for Django's static assets
location /static/ { location /static/ {
expires 30d; expires 30d;
......
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