Initial commit
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="de">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>wo-bisch.ch - LoraWAN Tracker</title>
|
||||
<link rel="stylesheet" href="/wo-bisch-web.css">
|
||||
<link rel="stylesheet" href="/wo-bisch-web-custom.css">
|
||||
</head>
|
||||
<body>
|
||||
<div class="section px-4 py-4">
|
||||
<div class="notification is-danger">
|
||||
<strong>Oops, da ist was schiefgegangen!</strong>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,84 @@
|
||||
.image.is-10by1 img, .image.is-20by3 img {
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: 0;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.image.is-10by1 {
|
||||
padding-top: 10%;
|
||||
}
|
||||
|
||||
.image.is-20by3 {
|
||||
padding-top: 15%;
|
||||
}
|
||||
|
||||
hr {
|
||||
margin: 0 0 15px 0;
|
||||
}
|
||||
|
||||
.signup-box {
|
||||
margin: auto;
|
||||
width: 300px;
|
||||
background: rgba(255,255,255,0.05);
|
||||
border: 1px solid rgba(255,255,255,0.3);
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
.block-link {
|
||||
text-decoration: none !important;
|
||||
}
|
||||
|
||||
.apexcharts-title-text {
|
||||
font-weight: 700 !important;
|
||||
font-size: 24px !important;
|
||||
font-family: "Rubik", sans-serif !important;
|
||||
}
|
||||
|
||||
.apexcharts-legend {
|
||||
font-family: "Rubik", sans-serif;
|
||||
}
|
||||
|
||||
/**
|
||||
* * The CSS shown here will not be introduced in the Quickstart guide, but
|
||||
* * shows how you can use CSS to style your Element's container.
|
||||
* */
|
||||
input,
|
||||
.StripeElement {
|
||||
height: 40px;
|
||||
padding: 10px 12px;
|
||||
|
||||
color: #32325d;
|
||||
background-color: white;
|
||||
border: 1px solid transparent;
|
||||
border-radius: 4px;
|
||||
|
||||
box-shadow: 0 1px 3px 0 #e6ebf1;
|
||||
-webkit-transition: box-shadow 150ms ease;
|
||||
transition: box-shadow 150ms ease;
|
||||
}
|
||||
|
||||
input:focus,
|
||||
.StripeElement--focus {
|
||||
box-shadow: 0 1px 3px 0 #cfd7df;
|
||||
}
|
||||
|
||||
.StripeElement--invalid {
|
||||
border-color: #fa755a;
|
||||
}
|
||||
|
||||
.StripeElement--webkit-autofill {
|
||||
background-color: #fefde5 !important;
|
||||
}
|
||||
|
||||
.checkboxes input {
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.checkboxes label span {
|
||||
vertical-align: middle;
|
||||
margin-left: 5px;
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,9 @@
|
||||
---
|
||||
- name: Restart nginx
|
||||
service:
|
||||
name=nginx
|
||||
state=restarted
|
||||
|
||||
- name: Restore selinux context
|
||||
command: restorecon -irv /root/.acme.sh/wo-bisch.ch
|
||||
|
||||
@@ -0,0 +1,52 @@
|
||||
---
|
||||
- name: Install nginx
|
||||
yum:
|
||||
name: nginx
|
||||
|
||||
- name: enable nginx
|
||||
ignore_errors: yes
|
||||
systemd:
|
||||
name: nginx
|
||||
enabled: yes
|
||||
state: started
|
||||
|
||||
- name: create static dir
|
||||
file:
|
||||
path: /home/appuser/wo-bisch-web/static
|
||||
state: directory
|
||||
|
||||
- name: 502 error page
|
||||
copy:
|
||||
src: 502.html
|
||||
dest: /home/appuser/wo-bisch-web/static/502.html
|
||||
|
||||
- name: copy css files
|
||||
copy:
|
||||
src: "{{ item }}"
|
||||
dest: "/home/appuser/wo-bisch-web/static/{{ item }}"
|
||||
loop:
|
||||
- wo-bisch-web.css
|
||||
- wo-bisch-web-custom.css
|
||||
|
||||
- name: Allow apache to read files in /root/.acme.sh/wo-bisch.ch
|
||||
sefcontext:
|
||||
target: '/root/.acme.sh/mail2.nbit.ch(/.*)?'
|
||||
setype: httpd_sys_content_t
|
||||
state: present
|
||||
notify:
|
||||
- Restore selinux context
|
||||
|
||||
- name: Set httpd_can_network_connect flag on and keep it persistent across reboots
|
||||
seboolean:
|
||||
name: httpd_can_network_connect
|
||||
state: yes
|
||||
persistent: yes
|
||||
|
||||
- name: create /etc/nginx/nginx.conf from template
|
||||
template:
|
||||
src: nginx.conf.j2
|
||||
dest: /etc/nginx/nginx.conf
|
||||
owner: root
|
||||
group: root
|
||||
mode: '0644'
|
||||
notify: Restart nginx
|
||||
@@ -0,0 +1,60 @@
|
||||
user nginx;
|
||||
worker_processes auto;
|
||||
error_log /var/log/nginx/error.log;
|
||||
pid /run/nginx.pid;
|
||||
|
||||
# Load dynamic modules. See /usr/share/doc/nginx/README.dynamic.
|
||||
include /usr/share/nginx/modules/*.conf;
|
||||
|
||||
events {
|
||||
worker_connections 1024;
|
||||
}
|
||||
|
||||
http {
|
||||
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
|
||||
'$status $body_bytes_sent "$http_referer" '
|
||||
'"$http_user_agent" "$http_x_forwarded_for"';
|
||||
|
||||
access_log /var/log/nginx/access.log main;
|
||||
|
||||
sendfile on;
|
||||
tcp_nopush on;
|
||||
tcp_nodelay on;
|
||||
keepalive_timeout 65;
|
||||
types_hash_max_size 2048;
|
||||
|
||||
include /etc/nginx/mime.types;
|
||||
default_type application/octet-stream;
|
||||
|
||||
server {
|
||||
listen 80 default_server;
|
||||
listen [::]:80 default_server;
|
||||
server_name _;
|
||||
|
||||
return 301 https://wo-bisch.ch$request_uri;
|
||||
|
||||
}
|
||||
|
||||
|
||||
server {
|
||||
server_name wo-bisch.ch;
|
||||
root {{ document_root }}/static;
|
||||
|
||||
error_page 502 /502.html;
|
||||
|
||||
location /lorahandler {
|
||||
proxy_pass http://127.0.0.1:8080;
|
||||
}
|
||||
|
||||
location / { try_files $uri @wo-bisch; }
|
||||
location @wo-bisch {
|
||||
proxy_pass http://127.0.0.1:4000;
|
||||
}
|
||||
|
||||
listen [::]:443 ssl ipv6only=on;
|
||||
listen 443 ssl;
|
||||
ssl_certificate /root/.acme.sh/wo-bisch.ch/fullchain.cer;
|
||||
ssl_certificate_key /root/.acme.sh/wo-bisch.ch/wo-bisch.ch.key;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user