Updated tree
parent
7d8524e3ee
commit
ab5b1f43b9
12
cgi/client
12
cgi/client
|
@ -2,3 +2,15 @@
|
|||
# client
|
||||
|
||||
printf 'Content-Type: text/plain\n\nHello client!'
|
||||
|
||||
#TODO List peers
|
||||
# GET /
|
||||
|
||||
#TODO Add peer
|
||||
# POST /
|
||||
|
||||
#TODO Delete peer
|
||||
# DELETE /mypeer
|
||||
|
||||
#TODO Update peer
|
||||
# UPDATE /mypeer
|
||||
|
|
|
@ -0,0 +1,13 @@
|
|||
#!/bin/sh
|
||||
# fed
|
||||
|
||||
printf 'Content-Type: text/plain\n\nHello fed!\n'
|
||||
|
||||
#TODO Add peer
|
||||
# POST /
|
||||
|
||||
#TODO Delete peer
|
||||
# DELETE /mypeer
|
||||
|
||||
#TODO Update peer
|
||||
# UPDATE /mypeer
|
|
@ -1,4 +0,0 @@
|
|||
#!/bin/sh
|
||||
# lib/ns_send
|
||||
|
||||
printf 'ns_send\n'
|
|
@ -1,4 +0,0 @@
|
|||
#!/bin/sh
|
||||
# peer_send
|
||||
|
||||
printf 'peer_send\n'
|
|
@ -1,3 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
printf 'wg_send\n'
|
6
cgi/peer
6
cgi/peer
|
@ -1,6 +0,0 @@
|
|||
#!/bin/sh
|
||||
# peer
|
||||
|
||||
printf 'Content-Type: text/plain\n\nHello peer!\n'
|
||||
printf "$(lib/ns_send)\n"
|
||||
printf "$(lib/wg_send)\n"
|
|
@ -0,0 +1,4 @@
|
|||
#!/bin/sh
|
||||
# send/fed
|
||||
|
||||
printf 'send/fed\n'
|
|
@ -0,0 +1,4 @@
|
|||
#!/bin/sh
|
||||
# send/ns
|
||||
|
||||
printf 'send/ns\n'
|
|
@ -0,0 +1,4 @@
|
|||
#!/bin/sh
|
||||
# send/wg
|
||||
|
||||
printf 'send/wg\n'
|
|
@ -0,0 +1,9 @@
|
|||
<html>
|
||||
<head>
|
||||
<title>Wireguard Dashboard</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<script src="index.js">
|
||||
</body>
|
||||
</html>
|
21
nginx.conf
21
nginx.conf
|
@ -3,15 +3,24 @@ server {
|
|||
listen 8080;
|
||||
gzip off;
|
||||
autoindex on;
|
||||
|
||||
location /peer {
|
||||
location / {
|
||||
fastcgi_pass unix:/var/run/fcgiwrap.socket;
|
||||
include /etc/nginx/fastcgi_params;
|
||||
include /etc/nginx/fastcgi.conf;
|
||||
|
||||
# fastcgi_param SCRIPT_FILENAME /home/ki9/src/wgapi/wgapi.sh;
|
||||
root /home/ki9/src/wgapi/cgi;
|
||||
fastcgi_index peer;
|
||||
fastcgi_index client;
|
||||
}
|
||||
}
|
||||
server {
|
||||
server_name localhost;
|
||||
listen 8081;
|
||||
gzip off;
|
||||
autoindex on;
|
||||
location / {
|
||||
fastcgi_pass unix:/var/run/fcgiwrap.socket;
|
||||
include /etc/nginx/fastcgi_params;
|
||||
include /etc/nginx/fastcgi.conf;
|
||||
root /home/ki9/src/wgapi/cgi;
|
||||
fastcgi_index fed;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue