generated from coop-cloud/example
Compare commits
1 Commits
1.8.0+1.27
...
main
Author | SHA1 | Date | |
---|---|---|---|
b6aa829da8 |
@ -33,7 +33,7 @@ steps:
|
||||
from_secret: drone_abra-bot_token
|
||||
fork: true
|
||||
repositories:
|
||||
- toolshed/auto-recipes-catalogue-json
|
||||
- coop-cloud/auto-recipes-catalogue-json
|
||||
|
||||
trigger:
|
||||
event: tag
|
||||
|
@ -23,6 +23,3 @@ COMPOSE_FILE="compose.yml"
|
||||
# temporary or permanent redirect? (uncomment one)
|
||||
#REDIRECT_TYPE=redirect
|
||||
#REDIRECT_TYPE=permanent
|
||||
|
||||
# Optionally handle all URL requests using a single file (commonly index.html)
|
||||
#SINGLE_PAGE_SITE_HANDLER=/index.html
|
@ -23,7 +23,7 @@ Custom HTML website, served using Nginx.
|
||||
4. `abra app config YOURAPPDOMAIN` - be sure to change `$DOMAIN` to something that resolves to
|
||||
your Docker swarm box
|
||||
5. `abra app deploy YOURAPPDOMAIN`
|
||||
6. Copy your files to the container, using something like
|
||||
6. Copy your files to the container using:
|
||||
```
|
||||
abra app cp YOURAPPDOMAIN index.html app:/usr/share/nginx/html
|
||||
```
|
||||
|
@ -3,7 +3,7 @@ services:
|
||||
git:
|
||||
environment:
|
||||
- GIT_REPO_URL
|
||||
image: alpine/git:v2.47.2
|
||||
image: alpine/git:v2.40.1
|
||||
entrypoint: /docker-entrypoint.sh
|
||||
volumes:
|
||||
- content:/git
|
||||
|
@ -3,7 +3,7 @@ version: "3.8"
|
||||
|
||||
services:
|
||||
app:
|
||||
image: nginx:1.27.4
|
||||
image: nginx:1.25.3
|
||||
networks:
|
||||
- proxy
|
||||
deploy:
|
||||
@ -19,7 +19,7 @@ services:
|
||||
- "traefik.http.routers.${STACK_NAME}.middlewares=${STACK_NAME}-redirect"
|
||||
- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLForceHost=true"
|
||||
- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLHost=${DOMAIN}"
|
||||
- "coop-cloud.${STACK_NAME}.version=1.8.0+1.27.4"
|
||||
- "coop-cloud.${STACK_NAME}.version=1.5.1+1.25.3"
|
||||
- "backupbot.backup=true"
|
||||
- "backupbot.backup.path=/usr/share/nginx/html"
|
||||
environment:
|
||||
|
@ -15,11 +15,7 @@ server {
|
||||
rewrite ^{{ env "REDIRECT_FROM_PATH" }}(.*)$ {{ env "REDIRECT_TO_URL" }}$1 {{ env "REDIRECT_TYPE" }};
|
||||
{{ end }}
|
||||
|
||||
{{ if env "SINGLE_PAGE_SITE_HANDLER" }}
|
||||
try_files $uri $uri/ {{ env "SINGLE_PAGE_SITE_HANDLER" }} =404;
|
||||
{{ else }}
|
||||
try_files $uri $uri/ $uri.html =404;
|
||||
{{ end }}
|
||||
}
|
||||
|
||||
error_page 404 /404.html;
|
||||
|
Reference in New Issue
Block a user