migrate: more services for kid

This commit is contained in:
Strix 2023-10-22 16:51:58 +02:00
parent bf1bb72437
commit 48c6a57623
No known key found for this signature in database
GPG key ID: 49B2E37B8915B774
10 changed files with 386 additions and 1 deletions

View file

@ -0,0 +1,12 @@
server {
listen 80;
server_name bin.ixvd.net;
location = /client {
root /usr/share/nginx/html/bin;
}
location / {
proxy_pass http://bin:6162;
}
}

View file

@ -0,0 +1,10 @@
server {
listen 80;
server_name pad.ixvd.net sandbox.pad.ixvd.net;
location / {
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_pass http://cryptpad;
}
}

View file

@ -13,4 +13,11 @@ server {
proxy_pass http://whoogle:5000;
}
}
server {
# old domain redirect
listen 80;
server_name search.faulty.nl;
return 302 https://search.ixvd.net$request_uri;
}

View file

@ -0,0 +1,9 @@
#!/bin/sh
url="https://bin.ixvd.net"
filepath="$1"
filename=$(basename -- "$filepath")
extension="${filename##*.}"
response=$(curl --data-binary @${filepath:-/dev/stdin} --url $url)
echo "$url$response"".""$extension" | tee >(xclip -selection clipboard)