* Proxy changes now use a real tld of .net

This is to make browser behave better as they would always try to
avoid the domain lookup
This commit is contained in:
shockrah 2022-04-30 21:57:00 -07:00
parent 02a47b8418
commit f4b24be904
9 changed files with 41 additions and 5 deletions

View File

@ -0,0 +1,8 @@
# This config is purely for the default landing page that nginx normally serves
# up. The intention is to make Nginx's default page useful
server {
listen 80 default_server;
listen [::]:80 default_server;
root /var/www/html;
}

View File

@ -1,5 +1,5 @@
server { server {
server_name files.lablad; server_name files.lablad.net;
location / { location / {
proxy_pass http://127.0.0.1:8080; proxy_pass http://127.0.0.1:8080;
} }

View File

@ -3,7 +3,7 @@
# The default port is listed under /vars/main.yml as 3000 as GITEA_PUB_PORT # The default port is listed under /vars/main.yml as 3000 as GITEA_PUB_PORT
server { server {
server_name git.lablad; server_name git.lablad.net;
location / { location / {
proxy_pass http://127.0.0.1:3000; proxy_pass http://127.0.0.1:3000;
} }

View File

@ -0,0 +1,8 @@
server {
root /var/www/html;
index index.html;
server_name lablad.net;
location / {
try_files $uri $uri/ =404;
}
}

View File

@ -1,7 +1,7 @@
# metrics.lablad # metrics.lablad
server { server {
server_name metrics.lablad; server_name metrics.lablad.net;
proxy_set_header Host $http_host; proxy_set_header Host $http_host;
location / { location / {
proxy_pass http://127.0.0.1:6000; proxy_pass http://127.0.0.1:6000;

View File

@ -1,5 +1,5 @@
server { server {
server_name music.lablad; server_name music.lablad.net;
location / { location / {
proxy_pass http://127.0.0.1:4040; proxy_pass http://127.0.0.1:4040;
} }

View File

@ -0,0 +1,8 @@
server {
server_name todo.lablad.net;
location / {
proxy_pass http://127.0.0.1:9238;
}
}

View File

@ -21,6 +21,11 @@
name: apache2 name: apache2
state: absent state: absent
- name: Ensure the default website is disabled
file:
path: /etc/nginx/sites-enabled/default
state: absent
- name: website user account - name: website user account
user: user:
name: "{{STATIC_USER}}" name: "{{STATIC_USER}}"
@ -44,8 +49,8 @@
- ../files/music.lablad - ../files/music.lablad
- ../files/files.lablad - ../files/files.lablad
- ../files/metrics.lablad - ../files/metrics.lablad
- ../files/metrics.lablad
- ../files/todo.lablad - ../files/todo.lablad
- ../files/home.lablad
- name: Enable Sites - name: Enable Sites
file: file:
@ -58,6 +63,7 @@
- files.lablad - files.lablad
- metrics.lablad - metrics.lablad
- todo.lablad - todo.lablad
- home.lablad
notify: notify:
- restart-nginx - restart-nginx

View File

@ -0,0 +1,6 @@
server {
server_name {{SERVER_NAME}};
location / {
proxy_pass http://127.0.0.1:{{PORT}};
}
}