diff --git a/debian12-forgejo/playbook.yml b/debian12-forgejo/playbook.yml index aaf50e7..45cdfae 100644 --- a/debian12-forgejo/playbook.yml +++ b/debian12-forgejo/playbook.yml @@ -83,7 +83,7 @@ register: ssl_file_result - name: Return motd to registered var - ansible.builtin.command: certbot -n --nginx --agree-tos -m {{ sslmail }} -d {{ domain }} + ansible.builtin.command: certbot -n --test-cert --nginx --agree-tos -m {{ sslmail }} -d {{ domain }} when: not ssl_file_result.stat.exists diff --git a/debian12-forgejo/templates/nginx-site b/debian12-forgejo/templates/nginx-site new file mode 100644 index 0000000..665c4ee --- /dev/null +++ b/debian12-forgejo/templates/nginx-site @@ -0,0 +1,9 @@ +server { + listen 80; + server_name {{ domain }}; + + location / { # Note: Trailing slash + proxy_pass http://localhost:3000; # Note: Trailing slash + } + +}