removed the ipv6 error page

This commit is contained in:
Nils Norman Haukås 2024-02-26 10:52:18 +01:00
parent 168e2a75ec
commit f3311e6bdd
5 changed files with 1 additions and 47 deletions

View file

@ -8,24 +8,6 @@
# this machine's public IP, then replace ":80" below with your
# domain name.
# {
# # Support redirecting to HTTP->HTTPS on non-standard port
# # https://caddy.community/t/caddy-v2-redirect-non-ssl-http-traffic-to-https-on-same-non-standard-port/9089/11
# servers {
# listener_wrappers {
# http_redirect
# tls
# }
# }
# }
# :8090 {
# root * /var/www
# templates
# file_server
# }
code.on.nilsnh.no {
reverse_proxy :3000
}

View file

@ -1,11 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Hello world</title>
</head>
<body>
Hello world. Current time is: {{ now }}
</body>
</html>

View file

@ -45,20 +45,3 @@
src: Caddyfile
dest: /etc/caddy/Caddyfile
notify: reload caddy
- name: ensure /var/www exists
ansible.builtin.file:
state: directory
path: /var/www
owner: root
mode: '0755'
notify: reload caddy
- name: upload web files
copy:
owner: root
mode: '0755'
src: index.html
dest: /var/www/index.html
notify: reload caddy

View file

@ -1 +0,0 @@

View file

@ -20,5 +20,6 @@
rule: allow
port: "{{ item.port|string }}"
proto: "{{ item.proto }}"
delete: "{{ item.delete|default(false) }}"
loop: "{{ firewall_allowed_ports }}"