migrate: more services for kid
This commit is contained in:
parent
bf1bb72437
commit
48c6a57623
10 changed files with 386 additions and 1 deletions
12
servers/kid/docker-compose.d/custom/nginx/conf.d/bin.conf
Normal file
12
servers/kid/docker-compose.d/custom/nginx/conf.d/bin.conf
Normal 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;
|
||||
}
|
||||
}
|
|
@ -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;
|
||||
}
|
||||
}
|
|
@ -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;
|
||||
}
|
|
@ -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)
|
Loading…
Add table
Add a link
Reference in a new issue