1
0
mirror of https://github.com/gilbN/theme.park.git synced 2024-07-04 11:07:56 +02:00

Bump 🐋 base versions and add branding

This commit is contained in:
Marius 2023-03-04 16:02:32 +01:00
parent 042e0ddaff
commit 4819bf6afe
12 changed files with 52 additions and 56 deletions

View File

@ -1,34 +1,32 @@
server { server {
listen 80 default_server; listen 80 default_server;
listen [::]:80 default_server; listen [::]:80 default_server;
listen 443 ssl http2;
listen [::]:443 ssl http2; listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name _;
server_name _;
ssl_certificate /config/keys/cert.crt;
ssl_certificate_key /config/keys/cert.key; index index.html index.htm index.php;
index index.html index.htm index.php; location / {
alias /config/www/;
location / { try_files $uri $uri/ =404;
alias /config/www/; }
try_files $uri $uri/ =404; location /themepark {return 302 $scheme://$http_host/themepark/;}
} location /themepark/ {
location /themepark {return 302 $scheme://$http_host/themepark/;} alias /config/www/;
location /themepark/ { sub_filter_types *;
alias /config/www/; sub_filter 'url("/css/' 'url("/themepark/css/';
sub_filter_types *; sub_filter 'url(/resources/' 'url(/themepark/resources/';
sub_filter 'url("/css/' 'url("/themepark/css/'; sub_filter_once off;
sub_filter 'url(/resources/' 'url(/themepark/resources/'; try_files $uri $uri/ =404;
sub_filter_once off; }
try_files $uri $uri/ =404;
} # Don't cache
add_header Last-Modified $date_gmt;
# Don't cache add_header Cache-Control 'no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0';
add_header Last-Modified $date_gmt; if_modified_since off;
add_header Cache-Control 'no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0'; expires -1;
if_modified_since off; etag off;
expires -1; }
etag off;
}

View File

@ -0,0 +1,10 @@
████████╗██╗ ██╗███████╗███╗ ███╗███████╗ ██████╗ █████╗ ██████╗ ██╗ ██╗
╚══██╔══╝██║ ██║██╔════╝████╗ ████║██╔════╝ ██╔══██╗██╔══██╗██╔══██╗██║ ██╔╝
██║ ███████║█████╗ ██╔████╔██║█████╗ ██████╔╝███████║██████╔╝█████╔╝
██║ ██╔══██║██╔══╝ ██║╚██╔╝██║██╔══╝ ██╔═══╝ ██╔══██║██╔══██╗██╔═██╗
██║ ██║ ██║███████╗██║ ╚═╝ ██║███████╗██╗██║ ██║ ██║██║ ██║██║ ██╗
╚═╝ ╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝╚══════╝╚═╝╚═╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═╝
Made by @gilbN
https://theme-park.dev

View File

@ -0,0 +1 @@
oneshot

View File

@ -0,0 +1 @@
# This file doesn't do anything, it's just the end of the themepark init process

View File

@ -1,21 +1,5 @@
#!/usr/bin/with-contenv bash #!/usr/bin/with-contenv bash
echo '
----------------------------------------------------------------------------------------
dP dP dP
88 88 88
d8888P 88d888b. .d8888b. 88d8b.d8b. .d8888b. 88d888b. .d8888b. 88d888b. 88 .dP
88 88 `88 88ooood8 88 88 88 88ooood8 88. `88 88 `88 88 `88 88888.
88 88 88 88. ... 88 88 88 88. ... 88. .88 88 88 88 88 `8b.
dP dP dP `88888P dP dP dP `88888P 88 88Y888P `88888P8 dP dP `YP
88
dP
Made by @gilbN
https://theme-park.dev
----------------------------------------------------------------------------------------'
# Display variables for troubleshooting # Display variables for troubleshooting
echo -e "[theme.park-init] Variables set:\\n\ echo -e "[theme.park-init] Variables set:\\n\
PUID=${PUID}\\n\ PUID=${PUID}\\n\
@ -31,13 +15,13 @@ case ${TP_URLBASE} in
;; ;;
esac esac
DEFAULT='/defaults/default' DEFAULT='/defaults/default.conf'
if [[ ${TP_URLBASE} ]]; then if [[ ${TP_URLBASE} ]]; then
if ! grep -q "${TP_URLBASE}" "${DEFAULT}"; then if ! grep -q "${TP_URLBASE}" "${DEFAULT}"; then
sed -i "s/themepark/${TP_URLBASE}/g" ${DEFAULT} sed -i "s/themepark/${TP_URLBASE}/g" ${DEFAULT}
fi fi
fi fi
cp /defaults/default /config/nginx/site-confs cp /defaults/default.conf /config/nginx/site-confs
# make our folders and links # make our folders and links
mkdir -p \ mkdir -p \
@ -60,7 +44,7 @@ echo '[theme.park-init] Copying mods into /config/docker-mods'
echo '[theme.park-init] Running themes.py and creating CSS files' echo '[theme.park-init] Running themes.py and creating CSS files'
python3 /config/www/themes.py python3 /config/www/themes.py
echo '[theme.park-init] done.'
# permissions # permissions
chown -R abc:abc \ chown -R abc:abc \
/config /config

View File

@ -0,0 +1 @@
oneshot

View File

@ -0,0 +1 @@
/etc/s6-overlay/s6-rc.d/init-themepark/run

View File

@ -1,4 +1,4 @@
FROM ghcr.io/linuxserver/baseimage-alpine-nginx:3.14 FROM ghcr.io/linuxserver/baseimage-alpine-nginx:3.16
# set version label # set version label
ARG BUILD_DATE ARG BUILD_DATE

View File

@ -1,4 +1,4 @@
FROM ghcr.io/linuxserver/baseimage-alpine-nginx:arm32v7-3.14 FROM ghcr.io/linuxserver/baseimage-alpine-nginx:arm32v7-3.16
# set version label # set version label
ARG BUILD_DATE ARG BUILD_DATE

View File

@ -1,4 +1,4 @@
FROM ghcr.io/linuxserver/baseimage-alpine-nginx:arm64v8-3.14 FROM ghcr.io/linuxserver/baseimage-alpine-nginx:arm64v8-3.16
# set version label # set version label
ARG BUILD_DATE ARG BUILD_DATE