mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-08-25 06:13:32 +02:00
feat: re-add share, embed, paste, locker, memories web apps with nginx and port mappings
This commit is contained in:
committed by
GitHub
parent
c1efd293cf
commit
5f83978aff
@@ -43,6 +43,11 @@ RUN npm run build:albums
|
|||||||
RUN npm run build:accounts
|
RUN npm run build:accounts
|
||||||
RUN npm run build:auth
|
RUN npm run build:auth
|
||||||
RUN npm run build:cast
|
RUN npm run build:cast
|
||||||
|
RUN npm run build:share
|
||||||
|
RUN npm run build:embed
|
||||||
|
RUN npm run build:paste
|
||||||
|
RUN npm run build:locker
|
||||||
|
RUN npm run build:memories
|
||||||
|
|
||||||
#################
|
#################
|
||||||
# 1) Base image #
|
# 1) Base image #
|
||||||
@@ -90,6 +95,11 @@ COPY --from=web-builder /src/web/apps/albums/out /www/albums
|
|||||||
COPY --from=web-builder /src/web/apps/accounts/out /www/accounts
|
COPY --from=web-builder /src/web/apps/accounts/out /www/accounts
|
||||||
COPY --from=web-builder /src/web/apps/auth/out /www/auth
|
COPY --from=web-builder /src/web/apps/auth/out /www/auth
|
||||||
COPY --from=web-builder /src/web/apps/cast/out /www/cast
|
COPY --from=web-builder /src/web/apps/cast/out /www/cast
|
||||||
|
COPY --from=web-builder /src/web/apps/share/out /www/share
|
||||||
|
COPY --from=web-builder /src/web/apps/embed/out /www/embed
|
||||||
|
COPY --from=web-builder /src/web/apps/paste/out /www/paste
|
||||||
|
COPY --from=web-builder /src/web/apps/locker/out /www/locker
|
||||||
|
COPY --from=web-builder /src/web/apps/memories/out /www/memories
|
||||||
|
|
||||||
############################
|
############################
|
||||||
# 3) Install add-on helpers #
|
# 3) Install add-on helpers #
|
||||||
@@ -144,4 +154,4 @@ LABEL \
|
|||||||
#################
|
#################
|
||||||
# 6) Finish line
|
# 6) Finish line
|
||||||
#################
|
#################
|
||||||
EXPOSE 3000 3001 3002 3003 3004
|
EXPOSE 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009
|
||||||
|
|||||||
@@ -87,10 +87,20 @@ options:
|
|||||||
USE_EXTERNAL_DB: false
|
USE_EXTERNAL_DB: false
|
||||||
ports:
|
ports:
|
||||||
3000/tcp: 8300
|
3000/tcp: 8300
|
||||||
|
3005/tcp: 8305
|
||||||
|
3006/tcp: 8306
|
||||||
|
3007/tcp: 8307
|
||||||
|
3008/tcp: 8308
|
||||||
|
3009/tcp: 8309
|
||||||
3200/tcp: 8320
|
3200/tcp: 8320
|
||||||
8080/tcp: 8280
|
8080/tcp: 8280
|
||||||
ports_description:
|
ports_description:
|
||||||
3000/tcp: Ente web UI
|
3000/tcp: Ente web UI
|
||||||
|
3005/tcp: Ente Share
|
||||||
|
3006/tcp: Ente Embed
|
||||||
|
3007/tcp: Ente Paste
|
||||||
|
3008/tcp: Ente Locker
|
||||||
|
3009/tcp: Ente Memories
|
||||||
3200/tcp: MinIO S3 endpoint
|
3200/tcp: MinIO S3 endpoint
|
||||||
8080/tcp: Ente API (museum)
|
8080/tcp: Ente API (museum)
|
||||||
privileged:
|
privileged:
|
||||||
|
|||||||
@@ -225,7 +225,7 @@ start_web() {
|
|||||||
# Set nginx
|
# Set nginx
|
||||||
mv /etc/nginx/http.d/web.bak /etc/nginx/http.d/web.conf
|
mv /etc/nginx/http.d/web.bak /etc/nginx/http.d/web.conf
|
||||||
|
|
||||||
bashio::log.info "Starting Ente web (nginx, ports 3000‑3004)..."
|
bashio::log.info "Starting Ente web (nginx, ports 3000‑3009)..."
|
||||||
exec nginx -g 'daemon off;' &
|
exec nginx -g 'daemon off;' &
|
||||||
WEB_PID=$!
|
WEB_PID=$!
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -18,3 +18,23 @@ server {
|
|||||||
listen 3004; root /www/cast;
|
listen 3004; root /www/cast;
|
||||||
location / { try_files $uri $uri.html /index.html =404; }
|
location / { try_files $uri $uri.html /index.html =404; }
|
||||||
}
|
}
|
||||||
|
server {
|
||||||
|
listen 3005; root /www/share;
|
||||||
|
location / { try_files $uri $uri.html /index.html =404; }
|
||||||
|
}
|
||||||
|
server {
|
||||||
|
listen 3006; root /www/embed;
|
||||||
|
location / { try_files $uri $uri.html /index.html =404; }
|
||||||
|
}
|
||||||
|
server {
|
||||||
|
listen 3007; root /www/paste;
|
||||||
|
location / { try_files $uri $uri.html /index.html =404; }
|
||||||
|
}
|
||||||
|
server {
|
||||||
|
listen 3008; root /www/locker;
|
||||||
|
location / { try_files $uri $uri.html /index.html =404; }
|
||||||
|
}
|
||||||
|
server {
|
||||||
|
listen 3009; root /www/memories;
|
||||||
|
location / { try_files $uri $uri.html /index.html =404; }
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user