ctucx.git: ansible-configs

My personal ansible roles and playbooks [deprecated in favor of nixos]

commit 10579a440f08120d395146d423d3fc343081f9d1
parent 20402cfce588f67134e676c63d1431747bddb864
Author: Leah (ctucx) <leah@ctu.cx>
Date: Sun, 21 Feb 2021 02:23:51 +0100

replace localhost by 127.0.0.1
7 files changed, 12 insertions(+), 12 deletions(-)
diff --git a/config-files/grafana/provisioning/datasources/datasources.yml b/config-files/grafana/provisioning/datasources/datasources.yml
@@ -18,7 +18,7 @@ datasources:
   # <int> org id. will default to orgId 1 if not specified
   orgId: 1
   # <string> url
-  url: http://localhost:9090
+  url: http://127.0.0.1:9090
   # <string> database password, if used
   password:
   # <string> database user, if used
diff --git a/config-files/radicale/config b/config-files/radicale/config
@@ -1,7 +1,7 @@
 # Config file for Radicale - A simple calendar server
 
 [server]
-hosts = localhost:5232
+hosts = 127.0.0.1:5232
 #max_connections = 8
 #max_content_length = 100000000
 #timeout = 30
diff --git a/roles/cgit/templates/nginx-vhost.conf.j2 b/roles/cgit/templates/nginx-vhost.conf.j2
@@ -10,7 +10,7 @@ server {
 
 	location @cgit {
 		include fastcgi_params;
-		fastcgi_pass localhost:8001;
+		fastcgi_pass 127.0.0.1:8001;
 		fastcgi_param SCRIPT_FILENAME /usr/share/webapps/cgit/cgit.cgi;
 		fastcgi_param PATH_INFO $uri;
 		fastcgi_param QUERY_STRING $args;

@@ -34,7 +34,7 @@ server {
 
 	location @cgit {
 		include fastcgi_params;
-		fastcgi_pass localhost:8001;
+		fastcgi_pass 127.0.0.1:8001;
 		fastcgi_param SCRIPT_FILENAME /usr/share/webapps/cgit/cgit.cgi;
 		fastcgi_param PATH_INFO $uri;
 		fastcgi_param QUERY_STRING $args;
diff --git a/roles/fritzboxExporter/templates/nginx-vhost.conf.j2 b/roles/fritzboxExporter/templates/nginx-vhost.conf.j2
@@ -10,7 +10,7 @@ server {
 	server_name {{ services.fritzboxExporter.nginx.domain }};
 
 	location / {
-		proxy_pass http://localhost:1234/;
+		proxy_pass http://127.0.0.1:1234/;
 		include /etc/nginx/proxy.conf;
 	}
 }

@@ -28,7 +28,7 @@ server {
 	server_name {{ services.fritzboxExporter.nginx.domain }};
 
 	location / {
-		proxy_pass http://localhost:1234/;
+		proxy_pass http://127.0.0.1:1234/;
 		include /etc/nginx/proxy.conf;
 	}
 }
diff --git a/roles/grafana/templates/nginx-vhost.conf.j2 b/roles/grafana/templates/nginx-vhost.conf.j2
@@ -10,7 +10,7 @@ server {
 	server_name {{ services.grafana.nginx.domain }};
 
 	location / {
-		proxy_pass http://localhost:3000/;
+		proxy_pass http://127.0.0.1:3000/;
 	}
 }
 

@@ -27,7 +27,7 @@ server {
 	server_name {{ services.grafana.nginx.domain }};
 
 	location / {
-		proxy_pass http://localhost:3000/;
+		proxy_pass http://127.0.0.1:3000/;
 	}
 }
 {% endif %}
diff --git a/roles/pleroma/templates/nginx-vhost.conf.j2 b/roles/pleroma/templates/nginx-vhost.conf.j2
@@ -21,7 +21,7 @@ server {
 
 
 	location / {
-		proxy_pass http://localhost:4000/;
+		proxy_pass http://127.0.0.1:4000/;
 		include /etc/nginx/proxy.conf;
 	}
 }

@@ -50,7 +50,7 @@ server {
 
 
 	location / {
-		proxy_pass http://localhost:4000/;
+		proxy_pass http://127.0.0.1:4000/;
 		include /etc/nginx/proxy.conf;
 	}
 }
diff --git a/roles/radicale/templates/nginx-vhost.conf.j2 b/roles/radicale/templates/nginx-vhost.conf.j2
@@ -10,7 +10,7 @@ server {
 	server_name {{ services.radicale.nginx.domain }};
 
 	location / {
-		proxy_pass       http://localhost:5232/; # The / is important!
+		proxy_pass       http://127.0.0.1:5232/; # The / is important!
 		proxy_set_header Host $host;
 		proxy_set_header X-Real-IP $remote_addr;
 		proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

@@ -35,7 +35,7 @@ server {
 	server_name {{ services.radicale.nginx.domain }};
 
 	location / {
-		proxy_pass       http://localhost:5232/; # The / is important!
+		proxy_pass       http://127.0.0.1:5232/; # The / is important!
 		proxy_set_header Host $host;
 		proxy_set_header X-Real-IP $remote_addr;
 		proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;