CSP CSP CSP
This commit is contained in:
parent
a90a2b7d43
commit
b5aff22409
|
@ -66,8 +66,7 @@
|
||||||
index index.html;
|
index index.html;
|
||||||
add_header Reporting-Endpoints xmpp="https://http-to-xmpp.afpy.org";
|
add_header Reporting-Endpoints xmpp="https://http-to-xmpp.afpy.org";
|
||||||
add_header Report-To '{"group": "xmpp", "max_age": 86400, "endpoints": [{"url": "https://http-to-xmpp.afpy.org"}]}';
|
add_header Report-To '{"group": "xmpp", "max_age": 86400, "endpoints": [{"url": "https://http-to-xmpp.afpy.org"}]}';
|
||||||
add_header Content-Security-Policy-Report-Only "default-src 'none'; img-src 'self'; style-src 'self'; script-src 'self'; frame-ancestors 'self'; report-uri https://http-to-xmpp.afpy.org; report-to xmpp";
|
add_header Content-Security-Policy "default-src 'none'; img-src 'self'; style-src 'self'; script-src 'self'; frame-ancestors 'self'; frame-src https://www.helloasso.com https://web.libera.chat; report-uri https://http-to-xmpp.afpy.org; report-to xmpp";
|
||||||
# add_header Content-Security-Policy-Report-Only "default-src 'none'; img-src 'self'; style-src 'self'; script-src 'self'; frame-ancestors 'self'; frame-src https://www.helloasso.com https://web.libera.chat report-uri https://http-to-xmpp.afpy.org; report-to xmpp";
|
|
||||||
add_header X-Content-Type-Options "nosniff";
|
add_header X-Content-Type-Options "nosniff";
|
||||||
|
|
||||||
location /discord
|
location /discord
|
||||||
|
|
|
@ -26,10 +26,13 @@
|
||||||
changed_when: False
|
changed_when: False
|
||||||
|
|
||||||
- name: Install http-to-xmpp
|
- name: Install http-to-xmpp
|
||||||
|
notify: restart gate
|
||||||
become: true
|
become: true
|
||||||
become_user: "{{ user }}"
|
become_user: "{{ user }}"
|
||||||
pip:
|
pip:
|
||||||
name: [http-to-xmpp, pytz]
|
name:
|
||||||
|
- "http-to-xmpp>=0.2"
|
||||||
|
- pytz
|
||||||
virtualenv_command: /usr/bin/python3 -m venv
|
virtualenv_command: /usr/bin/python3 -m venv
|
||||||
virtualenv: "{{ home }}/venv/"
|
virtualenv: "{{ home }}/venv/"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue