start building ip4 deprecation notice
This commit is contained in:
parent
25929a4ada
commit
168e2a75ec
|
@ -8,6 +8,24 @@
|
|||
# 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
|
||||
}
|
||||
|
|
11
roles/caddy/files/index.html
Normal file
11
roles/caddy/files/index.html
Normal file
|
@ -0,0 +1,11 @@
|
|||
<!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>
|
|
@ -30,7 +30,7 @@
|
|||
state: present
|
||||
update_cache: true
|
||||
filename: caddy
|
||||
mode: 0644
|
||||
mode: '644'
|
||||
|
||||
- name: Install Caddy
|
||||
apt:
|
||||
|
@ -41,7 +41,24 @@
|
|||
- name: upload Caddyfile
|
||||
copy:
|
||||
owner: root
|
||||
mode: 644
|
||||
mode: '644'
|
||||
src: Caddyfile
|
||||
dest: /etc/caddy/Caddyfile
|
||||
notify: reload caddy
|
||||
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
|
||||
|
||||
|
|
Loading…
Reference in a new issue