Listen on localhost
Some checks failed
Test / build (push) Failing after 56s

This commit is contained in:
Mark Janssen 2025-04-27 21:19:41 +02:00
parent 050205e95c
commit 4870960b45
Signed by: foobar
GPG key ID: D8674D8FC4F69BD2
6 changed files with 19 additions and 11 deletions

View file

@ -1,9 +1,11 @@
---
root_access:
- blackdragon
- ak
- foobar
- polyfloyd
nodejs_version: 22.x
thelounge_version: "4.4.3"
thelounge_ldap_url: ldaps://ldap.bitlair.nl
@ -31,4 +33,4 @@ nginx_sites:
}
group_nft_input:
- "tcp dport { http, https } accept # Allow web-traffic from world"
- "tcp dport { http, https } accept # Allow web-traffic from world"

View file

@ -0,0 +1,5 @@
---
chat_user: thelounge
chat_group: thelounge
chat_configdir: "/etc/thelounge"

View file

@ -1,4 +1,5 @@
---
- name: Reload systemd
ansible.builtin.systemd:
daemon_reload: yes

View file

@ -19,12 +19,12 @@
- name: Ensure directories are present
ansible.builtin.file:
path: "{{ item.path }}"
owner: "thelounge"
group: "thelounge"
owner: "{{ chat_user }}"
group: "{{ chat_group }}"
state: "{{ item.state | default('directory') }}"
mode: "{{ item.mode | default('0770') }}"
with_items:
- { path: "/etc/thelounge" }
- { path: "{{ chat_configdir }}" }
- { path: "/var/local/thelounge/users" }
- { path: "/var/local/thelounge/storage" }
notify:
@ -34,8 +34,8 @@
ansible.builtin.template:
src: "{{ item.src }}"
dest: "{{ item.dest }}"
owner: "{{ item.owner | default( 'thelounge' ) }}"
group: "{{ item.group | default( 'thelounge' ) }}"
owner: "{{ item.owner | default( chat_user ) }}"
group: "{{ item.group | default( chat_group ) }}"
mode: "{{ item.mode | default('0640') }}"
with_items:
- { src: "nodesource.list", dest: "/etc/apt/sources.list.d/nodesource.list", owner: root, group: root }
@ -101,8 +101,8 @@
ansible.builtin.template:
src: "{{ item.src }}"
dest: "{{ item.dest }}"
owner: "{{ item.owner | default( 'thelounge' ) }}"
group: "{{ item.group | default( 'thelounge' ) }}"
owner: "{{ item.owner | default( chat_user ) }}"
group: "{{ item.group | default( chat_group ) }}"
mode: "{{ item.mode | default('0640') }}"
validate: "{{ item.validate | default([]) }}"
with_items:

View file

@ -3,7 +3,7 @@
module.exports = {
public: false,
port: 9000,
bind: "0.0.0.0",
bind: "127.0.0.1",
reverseProxy: true,
lockNetwork: true,
maxHistory: 10000,

View file

@ -4,8 +4,8 @@ After=network-online.target
Wants=network-online.target
[Service]
User=thelounge
Group=thelounge
User={{ chat_user }}
Group={{ chat_group }}
Type=simple
Environment=THELOUNGE_HOME=/var/local/thelounge
ExecStart=/usr/local/bin/thelounge start