3 Commits

4 changed files with 5 additions and 2 deletions

View File

@ -3,6 +3,8 @@
# Integrate environment variables
sed -i "s|__BACKEND__|${BACKEND_HOST}|" \
/etc/nginx/nginx.conf
sed -i "s|__BACKEND_PORT__|${BACKEND_PORT}|" \
/etc/nginx/nginx.conf
sed -i "s|__BASEURL__|${BASE_URL:-/}|g" \
/var/www/index.htm \
/var/www/manifest.json

View File

@ -58,7 +58,7 @@
Search on
<a href='http://iqdb.org/?url=<%- encodeURIComponent(ctx.post.fullContentUrl) %>'>IQDB</a> &middot;
<a href='https://danbooru.donmai.us/posts?tags=md5:<%- ctx.post.checksumMD5 %>'>Danbooru</a> &middot;
<a href='https://www.google.com/searchbyimage?&image_url=<%- encodeURIComponent(ctx.post.fullContentUrl) %>'>Google Images</a>
<a href='https://lens.google.com/uploadbyurl?url=<%- encodeURIComponent(ctx.post.fullContentUrl) %>'>Google Images</a>
</section>
<section class='social'>

View File

@ -20,7 +20,7 @@ http {
keepalive_timeout 65;
upstream backend {
server __BACKEND__:6666;
server __BACKEND__:__BACKEND_PORT__;
}
server {

View File

@ -32,6 +32,7 @@ services:
- server
environment:
BACKEND_HOST: server
BACKEND_PORT: 6666
BASE_URL:
volumes:
- "${MOUNT_DATA}:/data:ro"