2017-07-03 21:18:45 +02:00
|
|
|
server {
|
|
|
|
listen 80;
|
|
|
|
listen [::]:80;
|
|
|
|
|
2019-12-09 15:32:10 +01:00
|
|
|
proxy_set_header X-Forwarded-For $remote_addr;
|
|
|
|
|
2017-07-03 21:18:45 +02:00
|
|
|
server_name _;
|
|
|
|
|
|
|
|
location /.well-known/acme-challenge {
|
|
|
|
default_type "text/plain";
|
|
|
|
alias /var/www/acme-challenge;
|
|
|
|
}
|
|
|
|
|
|
|
|
root /var/www/html;
|
2018-01-10 15:54:30 +01:00
|
|
|
|
2020-11-24 20:29:53 +01:00
|
|
|
# VXoWG broker API
|
|
|
|
location /api {
|
|
|
|
proxy_pass http://localhost:8000/api;
|
|
|
|
}
|
|
|
|
|
2018-01-27 20:24:56 +01:00
|
|
|
# temp redirector server
|
|
|
|
location /move.php {
|
2019-12-09 15:32:10 +01:00
|
|
|
proxy_pass http://home.mephis.to:2342/move.php;
|
2018-01-27 20:24:56 +01:00
|
|
|
}
|
2020-02-04 10:23:23 +01:00
|
|
|
|
2019-12-09 15:32:10 +01:00
|
|
|
# updateserver @meph
|
2018-01-28 13:40:01 +01:00
|
|
|
location /firmware-ng/experimental {
|
2019-12-09 15:32:10 +01:00
|
|
|
proxy_pass http://home.mephis.to:2342/ff/experimental/images;
|
|
|
|
}
|
|
|
|
location /firmware-ng/stable {
|
|
|
|
proxy_pass http://home.mephis.to:2342/ff/stable/images;
|
2018-01-28 13:40:01 +01:00
|
|
|
}
|
2020-11-24 20:29:53 +01:00
|
|
|
|
2020-05-29 23:25:59 +02:00
|
|
|
# post 11s
|
|
|
|
location /firmware-11s/experimental {
|
2020-06-16 23:47:37 +02:00
|
|
|
proxy_pass http://home.mephis.to:2342/ff/11s/experimental/images;
|
2020-05-29 23:25:59 +02:00
|
|
|
}
|
|
|
|
location /firmware-11s/stable {
|
2020-06-16 23:47:37 +02:00
|
|
|
proxy_pass http://home.mephis.to:2342/ff/11s/stable/images;
|
2020-05-29 23:25:59 +02:00
|
|
|
}
|
2017-07-03 21:18:45 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
server {
|
|
|
|
listen 443 ssl http2;
|
|
|
|
listen [::]:443 ssl http2;
|
|
|
|
|
2020-06-16 23:47:37 +02:00
|
|
|
proxy_set_header X-Forwarded-For $remote_addr;
|
|
|
|
|
2017-07-03 21:18:45 +02:00
|
|
|
server_name {{ ansible_fqdn }};
|
|
|
|
|
|
|
|
ssl_certificate_key /etc/nginx/ssl/{{ ansible_fqdn }}.key;
|
|
|
|
ssl_certificate /etc/nginx/ssl/{{ ansible_fqdn }}.crt;
|
|
|
|
|
|
|
|
root /var/www/html;
|
2018-01-10 15:54:30 +01:00
|
|
|
|
2020-02-04 10:23:23 +01:00
|
|
|
# updateserver @meph
|
|
|
|
location /firmware-ng/experimental {
|
|
|
|
proxy_pass http://home.mephis.to:2342/ff/experimental/images;
|
|
|
|
}
|
|
|
|
location /firmware-ng/stable {
|
|
|
|
proxy_pass http://home.mephis.to:2342/ff/stable/images;
|
2018-01-10 15:54:30 +01:00
|
|
|
}
|
2020-11-24 20:29:53 +01:00
|
|
|
|
2020-06-16 23:47:37 +02:00
|
|
|
# post 11s
|
|
|
|
location /firmware-11s/experimental {
|
|
|
|
proxy_pass http://home.mephis.to:2342/ff/11s/experimental/images;
|
|
|
|
}
|
|
|
|
location /firmware-11s/stable {
|
|
|
|
proxy_pass http://home.mephis.to:2342/ff/11s/stable/images;
|
|
|
|
}
|
2017-07-03 21:18:45 +02:00
|
|
|
}
|