mirror of
https://github.com/M0r13n/mikrotik_monitoring.git
synced 2025-12-09 11:39:31 +00:00
adds option to add https
This commit is contained in:
parent
9a9e21451b
commit
6a1e1432b2
5 changed files with 71 additions and 4 deletions
9
nginx/nginx.conf
Normal file
9
nginx/nginx.conf
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
server {
|
||||
listen 80;
|
||||
root /usr/share/nginx/html;
|
||||
index index.html index.htm;
|
||||
|
||||
location / {
|
||||
proxy_pass http://grafana:3000/;
|
||||
}
|
||||
}
|
||||
22
nginx/nginx.conf.https
Normal file
22
nginx/nginx.conf.https
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
server {
|
||||
listen 80;
|
||||
|
||||
server_name 192.168.0.10;
|
||||
|
||||
# Your domain
|
||||
return 302 https://192.168.0.10;
|
||||
|
||||
}
|
||||
|
||||
server {
|
||||
listen 443 ssl;
|
||||
listen [::]:443 ssl;
|
||||
include ssl/self-signed.conf;
|
||||
|
||||
# Your domain
|
||||
server_name 192.168.0.10;
|
||||
|
||||
location / {
|
||||
proxy_pass http://grafana:3000/;
|
||||
}
|
||||
}
|
||||
2
nginx/self-signed.conf
Normal file
2
nginx/self-signed.conf
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
ssl_certificate /etc/nginx/ssl/nginx-selfsigned.crt;
|
||||
ssl_certificate_key /etc/nginx/ssl/nginx-selfsigned.key;
|
||||
Loading…
Add table
Add a link
Reference in a new issue