fix mail for baikal
This commit is contained in:
parent
8bdcce8e1e
commit
599113768d
6 changed files with 32 additions and 22 deletions
2
sabre-dav/.idea/misc.xml
generated
2
sabre-dav/.idea/misc.xml
generated
|
@ -3,5 +3,5 @@
|
||||||
<component name="Black">
|
<component name="Black">
|
||||||
<option name="sdkName" value="Python 3.13 (sabre-dav)" />
|
<option name="sdkName" value="Python 3.13 (sabre-dav)" />
|
||||||
</component>
|
</component>
|
||||||
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.13 (sabre-dav)" project-jdk-type="Python SDK" />
|
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.13" project-jdk-type="Python SDK" />
|
||||||
</project>
|
</project>
|
9
sabre-dav/.idea/sabre-dav.iml
generated
9
sabre-dav/.idea/sabre-dav.iml
generated
|
@ -1,12 +1,5 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<module type="PYTHON_MODULE" version="4">
|
<module version="4">
|
||||||
<component name="NewModuleRootManager">
|
|
||||||
<content url="file://$MODULE_DIR$">
|
|
||||||
<excludeFolder url="file://$MODULE_DIR$/.venv" />
|
|
||||||
</content>
|
|
||||||
<orderEntry type="jdk" jdkName="Python 3.13 (sabre-dav)" jdkType="Python SDK" />
|
|
||||||
<orderEntry type="sourceFolder" forTests="false" />
|
|
||||||
</component>
|
|
||||||
<component name="TemplatesService">
|
<component name="TemplatesService">
|
||||||
<option name="TEMPLATE_FOLDERS">
|
<option name="TEMPLATE_FOLDERS">
|
||||||
<list>
|
<list>
|
||||||
|
|
|
@ -41,6 +41,11 @@
|
||||||
src: ./templates/container/baikal.container.j2
|
src: ./templates/container/baikal.container.j2
|
||||||
dest: /etc/containers/systemd/baikal.container
|
dest: /etc/containers/systemd/baikal.container
|
||||||
mode: "0644"
|
mode: "0644"
|
||||||
|
- name: "Copy environment file"
|
||||||
|
ansible.builtin.template:
|
||||||
|
src: ./templates/container/environment_file
|
||||||
|
dest: "{{ baikal.base_directory }}/environment_file"
|
||||||
|
mode: "0644"
|
||||||
- name: Reload systemd
|
- name: Reload systemd
|
||||||
ansible.builtin.command:
|
ansible.builtin.command:
|
||||||
cmd: systemctl daemon-reload
|
cmd: systemctl daemon-reload
|
||||||
|
|
|
@ -7,7 +7,17 @@ AutoUpdate=registry
|
||||||
PublishPort={{ baikal.port }}:80/tcp
|
PublishPort={{ baikal.port }}:80/tcp
|
||||||
Volume={{ baikal.base_directory }}/{{ baikal.data_directory }}:/var/www/baikal/Specific:Z
|
Volume={{ baikal.base_directory }}/{{ baikal.data_directory }}:/var/www/baikal/Specific:Z
|
||||||
Volume={{ baikal.base_directory }}/{{ baikal.config_directory }}:/var/www/baikal/config:Z
|
Volume={{ baikal.base_directory }}/{{ baikal.config_directory }}:/var/www/baikal/config:Z
|
||||||
Environment=MSMTPRC={{ baikal.mail }}
|
Environment="MSMTPRC=defaults\n\
|
||||||
|
auth on\n\
|
||||||
|
tls on\n\
|
||||||
|
tls_trust_file /etc/ssl/certs/ca-certificates.crt\n\
|
||||||
|
account default\n\
|
||||||
|
host host\n\
|
||||||
|
port 587\n\
|
||||||
|
from baikal@example.com\n\
|
||||||
|
user user\n\
|
||||||
|
password pass\n\
|
||||||
|
"
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
# Inform systemd of additional exit status
|
# Inform systemd of additional exit status
|
||||||
|
|
13
sabre-dav/templates/container/environment_file
Normal file
13
sabre-dav/templates/container/environment_file
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
MSMTPRC="
|
||||||
|
defaults
|
||||||
|
auth on
|
||||||
|
tls on
|
||||||
|
tls_trust_file /etc/ssl/certs/ca-certificates.crt
|
||||||
|
account default
|
||||||
|
host <smtp host>
|
||||||
|
port 587
|
||||||
|
from baikal@example.com
|
||||||
|
user <user>
|
||||||
|
password <password>
|
||||||
|
"
|
||||||
|
|
|
@ -4,15 +4,4 @@ baikal:
|
||||||
port: 8069
|
port: 8069
|
||||||
base_directory: "/baikal"
|
base_directory: "/baikal"
|
||||||
data_directory: "data"
|
data_directory: "data"
|
||||||
config_directory: "config"
|
config_directory: "config"
|
||||||
mail: "" # note you will need to inline the following variables
|
|
||||||
# defaults
|
|
||||||
# auth on
|
|
||||||
# tls on
|
|
||||||
# tls_trust_file /etc/ssl/certs/ca-certificates.crt
|
|
||||||
# account default
|
|
||||||
# host <smtp host>
|
|
||||||
# port 587
|
|
||||||
# from baikal@example.com
|
|
||||||
# user <user>
|
|
||||||
# password <password>
|
|
Loading…
Add table
Reference in a new issue