This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#################################################################### | |
- traefik.enable=true | |
- traefik.http.routers.auth-service.entrypoints=https | |
- traefik.http.routers.auth-service.rule=Host(`auth-demo-api.${DOMAIN}`) | |
- traefik.http.routers.auth-service.tls=true | |
- traefik.http.routers.auth-service.tls.certresolver=le | |
# Port traefik needs to route traffic to | |
- traefik.http.routers.auth-service.service=auth-service | |
- traefik.http.services.auth-service.loadbalancer.server.port=8000 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Extension to the Kagi CSS */ | |
/* https://kagi.com/settings?p=custom_css */ | |
/* based on https://gist.github.com/joshellington/51765a15d8f780089619b638fc6aea6b */ | |
/* Unique part */ | |
.logo svg, .app-logo, .doggo_sit_a, .footer { display: none } | |
.m-h .m-app-logo { display: none } | |
.top_nav_links, #accountContainer .header_links { display: none } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Extension to the Kagi CSS */ | |
/* https://gist.github.com/joshellington/51765a15d8f780089619b638fc6aea6b */ | |
.logo svg, .app-logo, .doggo_sit_a, .footer { display: none } | |
.m-h .m-app-logo { display: none } | |
.top_nav_links, #accountContainer .header_links { display: none } | |
.search-form .search-submit-wrapper .search-submit-wrapper-inner { display: none } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
patches: | |
- target: | |
kind: Kustomization | |
group: kustomize.toolkit.fluxcd.io | |
patch: |- | |
- op: add | |
path: /spec/postBuild | |
value: | |
substituteFrom: | |
- kind: ConfigMap |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'dart:async'; | |
import 'package:flutter/foundation.dart'; | |
import 'package:l/l.dart' as logging; | |
/// Logger instance | |
final Logger logger = AppLogger$L(); | |
/// Possible levels of logging | |
enum LogLevel implements Comparable<LogLevel> { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
admin: | |
access_log_path: /tmp/admin_access.log | |
address: | |
socket_address: | |
address: 0.0.0.0 | |
port_value: 9901 | |
static_resources: | |
listeners: | |
- name: listener_0 | |
address: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Compose app version by adding build_number and environment type | |
final versionJsonFile = File(versionJsonPath); | |
final versionJson = jsonDecode(await versionJsonFile.readAsString()); | |
final appVersion = '${versionJson['version']}b${versionJson['build_number']}${appEnvironment[0]}'.trim(); | |
// Save environment json file | |
final envFile = File(envJsonPath); | |
final envFileContent = const JsonEncoder.withIndent(' ').convert(envJson); | |
final envFileMd5 = md5.convert(utf8.encode(envFileContent)).toString(); | |
await envFile.writeAsString(envFileContent); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"app_environment": "production", | |
"api_endpoint": "api.app.domain", | |
"api_port": 8080 | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
/app/bin/prepare-app-to-start app_environment=$APP_ENVIRONMENT app_version=$APP_VERSION | |
# Exec the CMD from the Dockerfile | |
exec "$@" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM nginx:alpine as production | |
COPY --from=build_dart /runtime/ / | |
COPY --from=build_dart /app/tool/prepare-app-to-start /app/bin/ | |
COPY --from=build_dart --chmod=0755 /app/tool/entrypoint.sh /app/bin/ | |
COPY --from=build_web /home/build/web /usr/share/nginx/html | |
EXPOSE 80/tcp | |
ENTRYPOINT ["/app/bin/entrypoint.sh"] | |
CMD ["nginx", "-g", "daemon off;"] |
NewerOlder