* Fixing dns for good as well the nginx configurations

This commit is contained in:
shockrah 2022-02-13 17:16:30 -08:00
parent e828b61c80
commit 62b3ccabe9
3 changed files with 20 additions and 5 deletions

View File

@ -1,10 +1,10 @@
# This file pertains to the Gitea service which is served under the FQDN:
# git.leftcoast.local
# git.lablad
# The default port is listed under /vars/main.yml as 3000 as GITEA_PUB_PORT
server {
server_name git.leftcoast.local;
server_name git.lablad;
location / {
proxy_pass http://localhost:3000;
proxy_pass http://127.0.0.1:3000;
}
}

View File

@ -0,0 +1,15 @@
# Further changes to DNS config are going to vary so heavily that I'm not
# even going to bother putting down anything else for dns configuration
# At this point basically just change /etc/resolv.conf to change dns targets
# and then add stuff to the /etc/hosts file as required
---
- hosts: leftcoastlab
tasks:
- name: Install DNSMasq
become: yes
apt:
name: "{{ item }}"
update_cache: yes
loop:
- dnsmasq

View File

@ -40,7 +40,7 @@
src: "{{ item }}"
dest: /etc/nginx/sites-available/
loop:
- ../files/git.leftcoast.local
- ../files/git.lablad
- name: Enable Sites
file:
@ -48,7 +48,7 @@
dest: /etc/nginx/sites-enabled/{{item}}
state: link
loop:
- git.leftcoast.local
- git.lablad
notify:
- restart-nginx