Skip to content
Snippets Groups Projects
Commit c45e8cf2 authored by MyIgel's avatar MyIgel :fire: Committed by skorpy
Browse files

rm www1

parent 672d12bd
Branches
No related tags found
No related merge requests found
......@@ -10,11 +10,26 @@ server {
access_log "{{ access_log }}";
error_log "{{ error_log }}";
root /srv/www/{{ hostname }}/htdocs/;
root /home/firmware/images;
{% if ssl_cert_exists %}
if ($host ~ ^firmware.) {
return 301 https://$host$request_uri;
}
set $isRouter false;
if ( $http_user_agent ~* curl) {
set $isRouter true;
}
if ( $http_user_agent ~* wget ) {
set $isRouter true;
}
if ( $http_user_agent ~* uclient-fetch ) {
set $isRouter true;
}
location / {
if ( $isRouter != true ) {
return 301 https://$host$request_uri;
}
}
{% endif %}
location /archive {
......
......@@ -74,14 +74,6 @@ base:
- network
- network.batman-adv
- network.domains-batman
'www1.ffm.freifunk.net':
- nginx
- letsencrypt
- meshviewer
- api
- grafana
- kernel
- kernel.sysctl
'access-*.batman.ffm.freifunk.net':
- bird
- bird.bgp
......@@ -181,3 +173,8 @@ base:
- network
- network.batman-adv
- network.domains-batman
'www3.aixit.off.de.ffffm.net':
- nginx
- letsencrypt
- kernel
- kernel.sysctl
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment