* 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:
parent
02a47b8418
commit
f4b24be904
8
docker-host/setup/files/default.lablad
Normal file
8
docker-host/setup/files/default.lablad
Normal 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;
|
||||
}
|
@ -1,5 +1,5 @@
|
||||
server {
|
||||
server_name files.lablad;
|
||||
server_name files.lablad.net;
|
||||
location / {
|
||||
proxy_pass http://127.0.0.1:8080;
|
||||
}
|
||||
|
@ -3,7 +3,7 @@
|
||||
# The default port is listed under /vars/main.yml as 3000 as GITEA_PUB_PORT
|
||||
|
||||
server {
|
||||
server_name git.lablad;
|
||||
server_name git.lablad.net;
|
||||
location / {
|
||||
proxy_pass http://127.0.0.1:3000;
|
||||
}
|
||||
|
8
docker-host/setup/files/home.lablad
Normal file
8
docker-host/setup/files/home.lablad
Normal file
@ -0,0 +1,8 @@
|
||||
server {
|
||||
root /var/www/html;
|
||||
index index.html;
|
||||
server_name lablad.net;
|
||||
location / {
|
||||
try_files $uri $uri/ =404;
|
||||
}
|
||||
}
|
@ -1,7 +1,7 @@
|
||||
# metrics.lablad
|
||||
|
||||
server {
|
||||
server_name metrics.lablad;
|
||||
server_name metrics.lablad.net;
|
||||
proxy_set_header Host $http_host;
|
||||
location / {
|
||||
proxy_pass http://127.0.0.1:6000;
|
||||
|
@ -1,5 +1,5 @@
|
||||
server {
|
||||
server_name music.lablad;
|
||||
server_name music.lablad.net;
|
||||
location / {
|
||||
proxy_pass http://127.0.0.1:4040;
|
||||
}
|
||||
|
8
docker-host/setup/files/todo.lablad
Normal file
8
docker-host/setup/files/todo.lablad
Normal file
@ -0,0 +1,8 @@
|
||||
server {
|
||||
server_name todo.lablad.net;
|
||||
location / {
|
||||
proxy_pass http://127.0.0.1:9238;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -21,6 +21,11 @@
|
||||
name: apache2
|
||||
state: absent
|
||||
|
||||
- name: Ensure the default website is disabled
|
||||
file:
|
||||
path: /etc/nginx/sites-enabled/default
|
||||
state: absent
|
||||
|
||||
- name: website user account
|
||||
user:
|
||||
name: "{{STATIC_USER}}"
|
||||
@ -44,8 +49,8 @@
|
||||
- ../files/music.lablad
|
||||
- ../files/files.lablad
|
||||
- ../files/metrics.lablad
|
||||
- ../files/metrics.lablad
|
||||
- ../files/todo.lablad
|
||||
- ../files/home.lablad
|
||||
|
||||
- name: Enable Sites
|
||||
file:
|
||||
@ -58,6 +63,7 @@
|
||||
- files.lablad
|
||||
- metrics.lablad
|
||||
- todo.lablad
|
||||
- home.lablad
|
||||
notify:
|
||||
- restart-nginx
|
||||
|
||||
|
6
docker-host/setup/templates/proxy.conf.j2
Normal file
6
docker-host/setup/templates/proxy.conf.j2
Normal file
@ -0,0 +1,6 @@
|
||||
server {
|
||||
server_name {{SERVER_NAME}};
|
||||
location / {
|
||||
proxy_pass http://127.0.0.1:{{PORT}};
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user