Skip to content
Snippets Groups Projects
Commit 3f53d5e8 authored by Paul's avatar Paul :turtle:
Browse files

add ffdyn to service role

parent d21fab67
No related branches found
No related tags found
No related merge requests found
Pipeline #4644 failed
......@@ -8,3 +8,4 @@ nginx:
- hopglass-map
- luebeck.freifunk.net
- wiki
- ffdyndns
name = "FFdynDNS"
description = "DynDNS Service"
server_web_url = "ffdyn.net"
database = "./db.rocks"
dns_server = "10.130.0.104"
bind_address = "0.0.0.0"
bind_port = 8053
[[domain]]
name = "ffdyn.net."
description = "Freifunk Premium Domain"
allowed_ips = ["0.0.0.0/0", "::/0"]
validity = 1
server {
listen 80;
listen [::]:80;
#listen localhost:443 ssl http2;
#listen [::]:443 ssl http2;
server_name ffdyn.net;
include snippets/acme.conf;
include snippets/tls.conf;
#ssl_certificate /var/lib/acme/live/luebeck.freifunk.net/fullchain;
#ssl_certificate_key /var/lib/acme/live/luebeck.freifunk.net/privkey;
#if ($ssl_protocol = "") {
# return 301 https://$host$request_uri;
#}
location / {
proxy_pass http://127.0.0.1:8053;
include snippets/proxy-params.conf;
}
}
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
......@@ -38,8 +38,3 @@
copy:
src: etc/
dest: /etc
- name: install base tools
include: software.yml
tags: [base, apt, software]
---
- name: copy configs
copy:
src: ffdyndns/ffdyndns.toml
dest: /etc/
# install ffdyndns
- name: install ffdyndns
block:
- name: download ffdyndns
get_url:
url: https://freifunk-luebeck.pages.chaotikum.org/ffdyndns/ffdyndns.deb
dest: /tmp/ffdyndns.deb
- name: install ffdyndns
command: dpkg -i --force-confold /tmp/ffdyndns.deb
- name: enable ffdyndns
systemd:
daemon_reload: yes
state: restarted
enabled: yes
name: ffdyndns
---
- name: base config
tags: [base]
include_tasks:
import_tasks:
file: base.yml
apply:
tags: [base]
- name: install packages
include: software.yml
......@@ -18,3 +15,8 @@
- name: setup nginx
include: nginx.yml
tags: [nginx]
- name: ffdyndns
tags: [ffdyndns]
import_tasks:
file: ffdyndns.yml
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment