Script changed

This commit is contained in:
Fr4nz D13trich 2025-10-09 20:07:44 +02:00
parent c9223ecffc
commit eee7ee410c
7 changed files with 101 additions and 19 deletions

1
assets/test/hostname Normal file
View file

@ -0,0 +1 @@
bla

View file

@ -0,0 +1 @@
cor3unit

7
assets/test/hosts Normal file
View file

@ -0,0 +1,7 @@
127.0.0.1 localhost
127.0.1.1 bla.lan bla
# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

7
assets/test/hosts.backup Normal file
View file

@ -0,0 +1,7 @@
127.0.0.1 localhost
127.0.1.1 cor3unit.lan cor3unit
# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

33
assets/test/nginx.conf Normal file
View file

@ -0,0 +1,33 @@
###########################################################
### ###
### MESHPI NGINX CONFIG ###
### ###
###########################################################
server {
listen 80;
server_name DOMAIN IPADDR;
return 301 https://$host$request_uri;
}
server {
listen 443 ssl;
server_name DOMAIN IPADDR;
ssl_certificate CERTPATH;
ssl_certificate_key CERTPATH;
ssl_protocols TLSv1.2 TLSv1.3;
ssl_ciphers HIGH:!aNULL:!MD5;
ssl_session_cache shared:SSL:10m;
ssl_session_timeout 10m;
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always;
location / {
try_files $uri $uri/ =404;
root /var/www/html;
index index.html;
}
}

View file

@ -1,2 +1,3 @@
#!/bin/bash
sed -i.bak "s/DOMAIN/$HOSTNAME.local/g" nginx.conf