Compare commits

...

3 commits

Author SHA1 Message Date
fedc15a1d7 etherpad: Fix HTTP permission error 2024-06-24 20:25:36 +02:00
33567e6190 Sync from polyfloyd infra 2024-06-24 20:25:00 +02:00
e06d4fee00 wiki: Update spaceapi 2024-06-24 20:21:03 +02:00
6 changed files with 17 additions and 18 deletions

View file

@ -38,6 +38,6 @@ all:
services:
hosts:
service.bitlair.nl:
www:
wiki:
hosts:
cyber.bitlair.nl:
wiki.bitlair.nl:

View file

@ -76,18 +76,18 @@
insertafter: '^PATH'
line: 'MAILTO={{ notify_email }}'
- name: Turn off SSH password auth
- name: Configure SSH
lineinfile:
path: /etc/ssh/sshd_config
regexp: '^#?PasswordAuthentication'
line: 'PasswordAuthentication no'
notify: reload sshd
- name: Configure SSH port
lineinfile:
path: /etc/ssh/sshd_config
regexp: '^#?Port'
line: 'Port {{ ssh_port }}'
regexp: "{{ item.regexp }}"
line: "{{ item.line }}"
with_items:
- regexp: '^#?Port'
line: 'Port {{ ssh_port }}'
- regexp: '^#?PasswordAuthentication'
line: 'PasswordAuthentication no'
- regexp: '^#?DebianBanner'
line: 'DebianBanner no'
notify: reload sshd
- name: Allow SSH

View file

@ -13,7 +13,6 @@ server {
{% endif %}
add_header Strict-Transport-Security "max-age=63072000; includeSubDomains; preload";
add_header X-Frame-Options DENY;
add_header X-Content-Type-Options nosniff;
location / {

View file

@ -69,7 +69,7 @@
"allowUnknownFileEnds": true,
"requireAuthentication": false,
"requireAuthorization": false,
"trustProxy": false,
"trustProxy": true,
"cookie": {
"sameSite": "Lax"
},

View file

@ -3,10 +3,10 @@
import_tasks: calendar.yaml
- tags: www_mediawiki
include_tasks: mediawiki.yaml
import_tasks: mediawiki.yaml
- tags: www_mqtt
include_tasks: mqtt.yaml
import_tasks: mqtt.yaml
- tags: www_spaceapi
include_tasks: spaceapi.yaml
import_tasks: spaceapi.yaml

View file

@ -2,7 +2,7 @@
- name: Clone spaceapi source
git:
repo: https://github.com/bitlair/spaceapi.git
version: master
version: main
dest: /opt/spaceapi
accept_hostkey: yes
notify: restart spaceapi