refaktoriranje, popravki skripte za tunele

sbc
Jurij Podgoršek 2023-06-05 04:13:20 +02:00
parent a19c28cfc6
commit 966a5f9f85
22 changed files with 73 additions and 24 deletions

Binary file not shown.

View File

@ -0,0 +1,15 @@
[Unit]
Description=HTTP tunel
After=network.target
[Service]
# Tuneliraj lokalni port 22 na streznikov port 2222
User=g1smo
RemainAfterExit=yes
EnvironmentFile=/etc/default/galbot
ExecStart=/usr/bin/ssh -nNT -o ServerAliveInterval=60 -o ExitOnForwardFailure=yes -R 8989:localhost:80 ${REMOTEUSER}@${REMOTEHOST}
RestartSec=5
Restart=always
[Install]
WantedBy=multi-user.target

View File

@ -0,0 +1,15 @@
[Unit]
Description=Janus tunel
After=network.target
[Service]
# Tuneliraj lokalni port 22 na streznikov port 2222
User=g1smo
RemainAfterExit=yes
EnvironmentFile=/etc/default/galbot
ExecStart=/usr/bin/ssh -nNT -o ServerAliveInterval=60 -o ExitOnForwardFailure=yes -R 8188:localhost:8188 ${REMOTEUSER}@${REMOTEHOST}
RestartSec=5
Restart=always
[Install]
WantedBy=multi-user.target

View File

@ -0,0 +1,16 @@
[Unit]
Description=SSH tunel
After=network.target
[Service]
# Tuneliraj lokalni port 22 na streznikov port 2222
User=g1smo
RemainAfterExit=yes
EnvironmentFile=/etc/default/galbot
#ExecStart=/usr/bin/autossh -M 20000 -nNT -o ServerAliveInterval=60 -o ExitOnForwardFailure=yes -R 2222:localhost:22 ${REMOTEUSER}@${REMOTEHOST}
ExecStart=/usr/bin/ssh -nNT -o ServerAliveInterval=60 -o ExitOnForwardFailure=yes -R 2222:localhost:22 ${REMOTEUSER}@${REMOTEHOST}
RestartSec=5
Restart=always
[Install]
WantedBy=multi-user.target

View File

@ -0,0 +1,13 @@
[Unit]
Description=SSH tunel
After=network.target
[Service]
# Tuneliraj lokalni port 22 na streznikov port 2222
EnvironmentFile=/etc/default/galbot"
ExecStart=/usr/bin/ssh -NT -o ServerAliveInterval=60 -o ExitOnForwardFailure=yes -R 2222:localhost:22 ${REMOTEUSER}@${REMOTEHOST}
RestartSec=5
Restart=always
[Install]
WantedBy=multi-user.target

View File

@ -1,2 +0,0 @@
#!/bin/sh
create_ap wlan0 eth0 GalBotNet spustimenotzeno --country SI --freq-band 2.4

BIN
www/favicon.ico 100644

Binary file not shown.

After

Width:  |  Height:  |  Size: 103 KiB

View File

@ -8,11 +8,11 @@
<title>Galerija BOT</title> <title>Galerija BOT</title>
<script type="text/javascript" src="webrtc-adapter.min.js" ></script> <script type="text/javascript" src="js/webrtc-adapter.min.js" ></script>
<script type="text/javascript" src="settings.js" ></script> <script type="text/javascript" src="js/settings.js" ></script>
<script type="text/javascript" src="script-janus.js" ></script> <script type="text/javascript" src="js/script-janus.js" ></script>
<script type="text/javascript" src="propeliraj.js"></script> <script type="text/javascript" src="js/propeliraj.js"></script>
<script type="text/javascript" src="streaming.js"></script> <script type="text/javascript" src="js/streaming.js"></script>
<link rel="stylesheet" href="stil.css" type="text/css"/> <link rel="stylesheet" href="stil.css" type="text/css"/>
</head> </head>

View File

Before

Width:  |  Height:  |  Size: 2.4 KiB

After

Width:  |  Height:  |  Size: 2.4 KiB

View File

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

View File

@ -1,6 +1,6 @@
@font-face { @font-face {
font-family: CenturyGothic; font-family: CenturyGothic;
src: url("CenturyGothic.ttf") format("truetype"); src: url("../font/CenturyGothic.ttf") format("truetype");
} }
body { body {
@ -16,16 +16,15 @@ body {
h1, h2 { h1, h2 {
display: inline; display: inline;
font-weight: normal;
} }
h1 { h1 {
font-size: 2.5rem; font-size: 2.5rem;
margin-right: .4rem; margin-right: .4rem;
font-weight: normal;
} }
h2 { h2 {
font-size: .8rem; font-size: .8rem;
font-weight: normal;
word-spacing: 1px; word-spacing: 1px;
} }
@ -144,35 +143,28 @@ button[disabled] {
right: 0; right: 0;
background-size: contain; background-size: contain;
background-repeat: no-repeat; background-repeat: no-repeat;
}
#levo:before,
#desno:before,
#ravno:before {
width: 80%; width: 80%;
height: 80%; height: 80%;
left: 10%; left: 10%;
top: 10%;
} }
#levo:before,
#desno:before {
top: 20%;
}
#ravno:before { #ravno:before {
background-image: url(gor.svg); background-image: url(slike/gor.svg);
width: 65%; width: 65%;
height: 65%; height: 65%;
top: 17.5%; top: 17.5%;
left: 17.5%; left: 17.5%;
} }
#desno:before,
#levo:before { #levo:before {
background-image: url(desno.svg); top: 20%;
transform: scaleX(-1); background-image: url(slike/desno.svg);
} }
#desno:before { #levo:before {
background-image: url(desno.svg); transform: scaleX(-1);
} }
.predvajam .gumbi { .predvajam .gumbi {