mirror of
https://github.com/linuxserver/docker-heimdall.git
synced 2026-04-05 02:56:32 +09:00
Compare commits
26 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9b63642fed | ||
|
|
614bba2960 | ||
|
|
f084b90282 | ||
|
|
bce88664bf | ||
|
|
1bc1af427b | ||
|
|
78ecdea6d6 | ||
|
|
f030577f75 | ||
|
|
992949bd7c | ||
|
|
b34b1691f4 | ||
|
|
9386537608 | ||
|
|
3ed22863f7 | ||
|
|
b357db7900 | ||
|
|
21ce2cff95 | ||
|
|
cd50025f67 | ||
|
|
8df0c56396 | ||
|
|
b570e58958 | ||
|
|
3fe9925064 | ||
|
|
275aa05c17 | ||
|
|
f8313f706d | ||
|
|
eb5710279a | ||
|
|
dcb82e63c4 | ||
|
|
f0fb1690eb | ||
|
|
61aecdb033 | ||
|
|
41fd08cadb | ||
|
|
458ed75332 | ||
|
|
21cca50992 |
18
Dockerfile
18
Dockerfile
@@ -17,19 +17,19 @@ RUN \
|
|||||||
php7-pdo_sqlite \
|
php7-pdo_sqlite \
|
||||||
php7-tokenizer \
|
php7-tokenizer \
|
||||||
tar && \
|
tar && \
|
||||||
mkdir -p /app/heimdall && \
|
echo "**** install heimdall ****" && \
|
||||||
VERSION="$(curl -sX GET https://api.github.com/repos/linuxserver/Heimdall/releases/latest | grep 'tag_name' | cut -d\" -f4)" && \
|
HEIM_VER="$(curl -sX GET https://api.github.com/repos/linuxserver/Heimdall/releases/latest | grep 'tag_name' | cut -d\" -f4)" && \
|
||||||
echo "**Installing Heimdall ${VERSION}**" && \
|
mkdir -p \
|
||||||
|
/var/www/localhost/heimdall && \
|
||||||
curl -o \
|
curl -o \
|
||||||
/tmp/heimdall.tar.gz -L \
|
/tmp/heimdall.tar.gz -L \
|
||||||
"https://github.com/linuxserver/Heimdall/archive/${VERSION}.tar.gz" && \
|
"https://github.com/linuxserver/Heimdall/archive/${HEIM_VER}.tar.gz" && \
|
||||||
tar xf \
|
tar xf \
|
||||||
/tmp/heimdall.tar.gz -C \
|
/tmp/heimdall.tar.gz -C \
|
||||||
/tmp && \
|
/var/www/localhost/heimdall --strip-components=1 && \
|
||||||
cp -R /tmp/Heimdall-*/* /app/heimdall/ && \
|
|
||||||
echo "** cleanup **" && \
|
echo "** cleanup **" && \
|
||||||
rm -rf \
|
rm -rf \
|
||||||
/tmp/*
|
/tmp/*
|
||||||
|
|
||||||
# add local files
|
# add local files
|
||||||
COPY root/ /
|
COPY root/ /
|
||||||
|
|||||||
12
README.md
12
README.md
@@ -13,7 +13,7 @@ The [LinuxServer.io][linuxserverurl] team brings you another container release f
|
|||||||
* [Podcast][podcasturl] covers everything to do with getting the most from your Linux Server plus a focus on all things Docker and containerisation!
|
* [Podcast][podcasturl] covers everything to do with getting the most from your Linux Server plus a focus on all things Docker and containerisation!
|
||||||
|
|
||||||
# linuxserver/heimdall
|
# linuxserver/heimdall
|
||||||
[](https://microbadger.com/images/linuxserver/nginx "Get your own version badge on microbadger.com")[](https://microbadger.com/images/linuxserver/nginx "Get your own image badge on microbadger.com")[][hub][][hub][](https://ci.linuxserver.io/job/Docker-Builders/job/x86-64/job/x86-64-nginx/)
|
[](https://microbadger.com/images/linuxserver/heimdall "Get your own version badge on microbadger.com")[](https://microbadger.com/images/linuxserver/heimdall "Get your own image badge on microbadger.com")[][hub][][hub][](https://ci.linuxserver.io/job/Docker-Builders/job/x86-64/job/x86-64-heimdall/)
|
||||||
|
|
||||||
Heimdall is a way to organise all those links to your most used web sites and web applications in a simple way.
|
Heimdall is a way to organise all those links to your most used web sites and web applications in a simple way.
|
||||||
|
|
||||||
@@ -21,7 +21,7 @@ Simplicity is the key to Heimdall.
|
|||||||
|
|
||||||
Why not use it as your browser start page? It even has the ability to include a search bar using either Google, Bing or DuckDuckGo.
|
Why not use it as your browser start page? It even has the ability to include a search bar using either Google, Bing or DuckDuckGo.
|
||||||
|
|
||||||
[][appurl]
|
[][appurl]
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
@@ -49,7 +49,6 @@ http://192.168.x.x:8080 would show you what's running INSIDE the container on po
|
|||||||
* `-e PGID` for GroupID - see below for explanation
|
* `-e PGID` for GroupID - see below for explanation
|
||||||
* `-e PUID` for UserID - see below for explanation
|
* `-e PUID` for UserID - see below for explanation
|
||||||
* `-e TZ` - timezone ie. `America/New_York`
|
* `-e TZ` - timezone ie. `America/New_York`
|
||||||
* `-e BASEURL` - _optional_ - you can set a base url through this variable to serve the app at http://SERVERIP:PORT/BASEURL
|
|
||||||
|
|
||||||
It is based on alpine linux with s6 overlay, for shell access whilst the container is running do `docker exec -it heimdall /bin/bash`.
|
It is based on alpine linux with s6 overlay, for shell access whilst the container is running do `docker exec -it heimdall /bin/bash`.
|
||||||
|
|
||||||
@@ -68,6 +67,10 @@ In this instance `PUID=1001` and `PGID=1001`. To find yours use `id user` as bel
|
|||||||
|
|
||||||
Access the web gui at http://SERVERIP:PORT
|
Access the web gui at http://SERVERIP:PORT
|
||||||
|
|
||||||
|
## Adding password protection
|
||||||
|
|
||||||
|
This image now supports password protection through htpasswd. Run the following command on your host to generate the htpasswd file `docker exec -it heimdall htpasswd -c /config/nginx/.htpasswd <username>`. Replace <username> with a username of your choice and you will be asked to enter a password. New installs will automatically pick it up and implement password protected access. Existing users updating their image can delete their site config at `/config/nginx/site-confs/default` and restart the container after updating the image. A new site config with htpasswd support will be created in its place.
|
||||||
|
|
||||||
## Info
|
## Info
|
||||||
|
|
||||||
* To monitor the logs of the container in realtime `docker logs -f heimdall`.
|
* To monitor the logs of the container in realtime `docker logs -f heimdall`.
|
||||||
@@ -83,4 +86,5 @@ Access the web gui at http://SERVERIP:PORT
|
|||||||
|
|
||||||
## Versions
|
## Versions
|
||||||
|
|
||||||
+ **XX.02.18:** Intial Release.
|
+ **06.03.18:** Use password protection if htpasswd is set. Existing users can delete their default site config at /config/nginx/site-confs/default and restart the container, a new default site config with htpasswd support will be created in its place
|
||||||
|
+ **12.02.18:** Initial Release.
|
||||||
|
|||||||
@@ -1,9 +1,11 @@
|
|||||||
|
## Version 2018/03/06 - Changelog: https://github.com/linuxserver/docker-heimdall/commits/master/root/defaults/default
|
||||||
|
|
||||||
server {
|
server {
|
||||||
listen 80 default_server;
|
listen 80 default_server;
|
||||||
|
|
||||||
listen 443 ssl;
|
listen 443 ssl;
|
||||||
|
|
||||||
root /app/root;
|
root /var/www/localhost/heimdall/public;
|
||||||
index index.php index.html index.htm;
|
index index.php index.html index.htm;
|
||||||
|
|
||||||
server_name _;
|
server_name _;
|
||||||
@@ -12,10 +14,21 @@ server {
|
|||||||
ssl_certificate_key /config/keys/cert.key;
|
ssl_certificate_key /config/keys/cert.key;
|
||||||
|
|
||||||
client_max_body_size 0;
|
client_max_body_size 0;
|
||||||
|
|
||||||
|
error_page 599 = @noauth;
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
try_files $uri $uri/ /index.php?$args;
|
if (!-f /config/nginx/.htpasswd) {
|
||||||
}
|
return 599;
|
||||||
|
}
|
||||||
|
auth_basic "Restricted";
|
||||||
|
auth_basic_user_file /config/nginx/.htpasswd;
|
||||||
|
try_files $uri $uri/ /index.php?$args;
|
||||||
|
}
|
||||||
|
|
||||||
|
location @noauth {
|
||||||
|
try_files $uri $uri/ /index.php?$args;
|
||||||
|
}
|
||||||
|
|
||||||
location ~ \.php$ {
|
location ~ \.php$ {
|
||||||
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
||||||
|
|||||||
@@ -4,27 +4,20 @@
|
|||||||
mkdir -p \
|
mkdir -p \
|
||||||
/config/www/{backgrounds,icons}
|
/config/www/{backgrounds,icons}
|
||||||
|
|
||||||
# set base url if needed
|
|
||||||
rm -rf /app/root
|
|
||||||
if [ -z "$BASEURL" ]; then
|
|
||||||
echo "No base url set. You can access the app at http://SERVERIP:PORT"
|
|
||||||
ln -s ./heimdall/public /app/root
|
|
||||||
else
|
|
||||||
echo "Setting base url. You can access the app at http://SERVERIP:PORT/$BASEURL"
|
|
||||||
mkdir -p /app/root
|
|
||||||
ln -s ../heimdall/public /app/root/"$BASEURL"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# symlink user config
|
# symlink user config
|
||||||
rm -rf \
|
|
||||||
/app/heimdall/storage/app/public/backgrounds \
|
symlinks=( \
|
||||||
/app/heimdall/storage/app/public/icons \
|
/var/www/localhost/heimdall/storage/app/public/backgrounds \
|
||||||
/app/heimdall/database/app.sqlite
|
/var/www/localhost/heimdall/storage/app/public/icons \
|
||||||
ln -s /config/www/backgrounds /app/heimdall/storage/app/public/backgrounds
|
/var/www/localhost/heimdall/database/app.sqlite )
|
||||||
ln -s /config/www/icons /app/heimdall/storage/app/public/icons
|
|
||||||
ln -s /config/www/app.sqlite /app/heimdall/database/app.sqlite
|
for i in "${symlinks[@]}"
|
||||||
|
do
|
||||||
|
[[ -e "$i" && ! -L "$i" ]] && rm -rf "$i"
|
||||||
|
[[ ! -L "$i" ]] && ln -s /config/www/"$(basename "$i")" "$i"
|
||||||
|
done
|
||||||
|
|
||||||
# permissions
|
# permissions
|
||||||
chown -R abc:abc \
|
chown -R abc:abc \
|
||||||
/config \
|
/config \
|
||||||
/app
|
/var/www/localhost/heimdall
|
||||||
|
|||||||
Reference in New Issue
Block a user