Add nginx config files for the rest
This commit is contained in:
parent
5ad5e36998
commit
7a97d73ae0
|
@ -14,7 +14,7 @@ apps_vars:
|
||||||
version: 1.25.3-alpine-slim
|
version: 1.25.3-alpine-slim
|
||||||
|
|
||||||
postfix:
|
postfix:
|
||||||
domain: smtp.{{ apps_base_domain }}
|
hostname: smtp.{{ apps_base_domain }}
|
||||||
backup: true
|
backup: true
|
||||||
sender: false
|
sender: false
|
||||||
extra_tasks: false
|
extra_tasks: false
|
||||||
|
@ -29,7 +29,7 @@ apps_vars:
|
||||||
version: v0.23.0
|
version: v0.23.0
|
||||||
|
|
||||||
monerod:
|
monerod:
|
||||||
domain: xmr.{{ apps_base_domain }}
|
domain: xmr.{{ apps_local_domain }}
|
||||||
backup: false
|
backup: false
|
||||||
sender: false
|
sender: false
|
||||||
extra_tasks: false
|
extra_tasks: false
|
||||||
|
|
|
@ -24,4 +24,4 @@
|
||||||
|
|
||||||
- name: Run extra configuration tasks for {{ app_name }}
|
- name: Run extra configuration tasks for {{ app_name }}
|
||||||
ansible.builtin.include_tasks: extra_tasks/{{ app_name }}.yml
|
ansible.builtin.include_tasks: extra_tasks/{{ app_name }}.yml
|
||||||
when: app_vars.extra_tasks is defined and app_vars.extra_tasks
|
when: app_vars.extra_tasks
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
name: "{{ apps_data_root }}"
|
name: "{{ apps_data_root }}"
|
||||||
owner: root
|
owner: root
|
||||||
mode: u=rwx,go=
|
mode: u=rwx,g=rx,o=rx
|
||||||
state: directory
|
state: directory
|
||||||
|
|
||||||
- name: Configure apps
|
- name: Configure apps
|
||||||
|
|
|
@ -6,9 +6,9 @@ services:
|
||||||
image: ipfs/kubo:{{ apps_vars.ipfs.version }}
|
image: ipfs/kubo:{{ apps_vars.ipfs.version }}
|
||||||
restart: always
|
restart: always
|
||||||
environment:
|
environment:
|
||||||
|
LOCAL_DOMAIN: {{ apps_vars.ipfs.domain }}
|
||||||
IPFS_DOMAIN: {{ apps_vars.ipfs.gateway_domain }}
|
IPFS_DOMAIN: {{ apps_vars.ipfs.gateway_domain }}
|
||||||
IPFS_PROFILE: server
|
IPFS_PROFILE: server
|
||||||
LOCAL_DOMAIN: {{ apps_vars.ipfs.domain }}
|
|
||||||
networks:
|
networks:
|
||||||
{{ apps_shared_docker_network }}:
|
{{ apps_shared_docker_network }}:
|
||||||
aliases:
|
aliases:
|
||||||
|
|
|
@ -7,7 +7,7 @@ services:
|
||||||
restart: always
|
restart: always
|
||||||
environment:
|
environment:
|
||||||
ALLOWED_SENDER_DOMAINS: "{{ apps_senders | join(' ') }}"
|
ALLOWED_SENDER_DOMAINS: "{{ apps_senders | join(' ') }}"
|
||||||
HOSTNAME: "{{ apps_vars.postfix.domain }}"
|
HOSTNAME: "{{ apps_vars.postfix.hostname }}"
|
||||||
DKIM_AUTOGENERATE: "true"
|
DKIM_AUTOGENERATE: "true"
|
||||||
networks:
|
networks:
|
||||||
- {{ apps_postfix_docker_network }}
|
- {{ apps_postfix_docker_network }}
|
||||||
|
|
24
roles/apps/templates/nginx/conf.d/ipfs.conf.j2
Normal file
24
roles/apps/templates/nginx/conf.d/ipfs.conf.j2
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
# code: language=ansible-jinja
|
||||||
|
server {
|
||||||
|
listen 8080;
|
||||||
|
server_name {{ apps_vars.ipfs.domain }};
|
||||||
|
resolver 127.0.1.1;
|
||||||
|
|
||||||
|
location / {
|
||||||
|
proxy_pass http://ipfs:5001;
|
||||||
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
|
proxy_set_header X-Forwarded-Proto "https";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
server {
|
||||||
|
listen 8080;
|
||||||
|
server_name ~^([\w-]+\.(ipfs|ipns)\.)?{{ apps_vars.ipfs.gateway_domain }}$;
|
||||||
|
resolver 127.0.1.1;
|
||||||
|
|
||||||
|
location / {
|
||||||
|
proxy_pass http://ipfs:8080;
|
||||||
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
|
proxy_set_header X-Forwarded-Proto "https";
|
||||||
|
}
|
||||||
|
}
|
12
roles/apps/templates/nginx/conf.d/monerod.conf.j2
Normal file
12
roles/apps/templates/nginx/conf.d/monerod.conf.j2
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
# code: language=ansible-jinja
|
||||||
|
server {
|
||||||
|
listen 8080;
|
||||||
|
server_name {{ apps_vars.monerod.domain }};
|
||||||
|
resolver 127.0.1.1;
|
||||||
|
|
||||||
|
location / {
|
||||||
|
proxy_pass http://monerod:18089;
|
||||||
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
|
proxy_set_header X-Forwarded-Proto "https";
|
||||||
|
}
|
||||||
|
}
|
|
@ -1,19 +1,16 @@
|
||||||
# code: language=ansible-jinja
|
# code: language=ansible-jinja
|
||||||
server {
|
server {
|
||||||
listen 8080;
|
listen 8080;
|
||||||
server_name {{ apps_vars.nextcloud.domain }}
|
server_name {{ apps_vars.nextcloud.domain }};
|
||||||
|
resolver 127.0.1.1;
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
proxy_pass http://nextcloud:80;
|
proxy_pass http://nextcloud:80;
|
||||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
proxy_set_header X-Forwarded-Proto $scheme;
|
proxy_set_header X-Forwarded-Proto "https";
|
||||||
}
|
}
|
||||||
|
|
||||||
location = /.well-known/carddav {
|
location ~^/\.well-known/(cal|card)dav$ {
|
||||||
return 301 $scheme://$host/remote.php/dav;
|
return 301 https://$host/remote.php/dav;
|
||||||
}
|
|
||||||
|
|
||||||
location = /.well-known/caldav {
|
|
||||||
return 301 $scheme://$host/remote.php/dav;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue