-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Support custom home from environment variables * Reduce iOS binary findings severity to warning from high * Code QA and dependency updates * docker-compose QA, added example nginx config * Added docker-compose_swarm.yml by @antonkap add support for docker secrets * IPA PNG Uncrush support for Windows and Linux #2397
- Loading branch information
1 parent
e4406e9
commit e5af3a8
Showing
19 changed files
with
364 additions
and
240 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
sonar.sources=. | ||
sonar.exclusions=mobsf/static/**/*,mobsf/templates/**/* | ||
sonar.sourceEncoding=UTF-8 | ||
sonar.python.version=3.10, 3.11 | ||
sonar.python.version=3.10, 3.11, 3.12 |
This file was deleted.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
services: | ||
|
||
postgres: | ||
image: "postgres:13" | ||
restart: always | ||
volumes: | ||
- $HOME/MobSF/postgresql_data:/var/lib/postgresql/data | ||
environment: | ||
- POSTGRES_USER=postgres | ||
- POSTGRES_PASSWORD=password | ||
- POSTGRES_DB=mobsf | ||
networks: | ||
- mobsf_network | ||
|
||
nginx: | ||
image: nginx:latest | ||
restart: always | ||
ports: | ||
- "80:4000" | ||
volumes: | ||
- ./nginx.conf:/etc/nginx/nginx.conf:ro | ||
depends_on: | ||
- mobsf | ||
networks: | ||
- mobsf_network | ||
|
||
mobsf: | ||
image: opensecurity/mobile-security-framework-mobsf:latest | ||
restart: always | ||
volumes: | ||
- $HOME/MobSF/mobsf_data:/home/mobsf/.MobSF | ||
environment: | ||
- POSTGRES_USER=postgres | ||
- POSTGRES_PASSWORD=password | ||
- POSTGRES_DB=mobsf | ||
- POSTGRES_HOST=postgres | ||
- POSTGRES_PORT=5432 | ||
healthcheck: | ||
test: curl -f http://localhost:8000/login/ || exit 1 | ||
depends_on: | ||
- postgres | ||
networks: | ||
- mobsf_network | ||
|
||
networks: | ||
mobsf_network: | ||
driver: bridge |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
services: | ||
|
||
postgres: | ||
image: "postgres:${POSTGRES_VERSION:-17.0-bookworm}" | ||
restart: always | ||
volumes: | ||
- $HOME/MobSF/postgresql_data:/var/lib/postgresql/data | ||
environment: | ||
- POSTGRES_USER=postgres | ||
- POSTGRES_PASSWORD_FILE=/run/secrets/mobsfDB_password | ||
- POSTGRES_DB=mobsf | ||
networks: | ||
- mobsf_network | ||
secrets: | ||
- mobsfDB_password | ||
|
||
mobsf: | ||
image: ${MOBSF_IMAGE:-opensecurity/mobile-security-framework-mobsf:latest} | ||
restart: always | ||
ports: | ||
- "8000:8000" | ||
volumes: | ||
- $HOME/MobSF/mobsf_data:/home/mobsf/.MobSF | ||
environment: | ||
- POSTGRES_USER=postgres | ||
- POSTGRES_PASSWORD_FILE=/run/secrets/mobsfDB_password | ||
- POSTGRES_DB=mobsf | ||
- POSTGRES_HOST=postgres | ||
- POSTGRES_PORT=5432 | ||
- MOBSF_API_KEY_FILE=/run/secrets/mobsf_api_key | ||
healthcheck: | ||
test: curl -f http://localhost:8000/login/ || exit 1 | ||
depends_on: | ||
- postgres | ||
networks: | ||
- mobsf_network | ||
secrets: | ||
- mobsfDB_password | ||
- mobsf_api_key | ||
|
||
networks: | ||
mobsf_network: | ||
|
||
secrets: | ||
mobsfDB_password: | ||
external: true | ||
mobsf_api_key: | ||
external: true |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
user nginx; | ||
events { | ||
worker_connections 1000; | ||
} | ||
http { | ||
server { | ||
listen 4000; | ||
location / { | ||
proxy_set_header X-Forwarded-Host $host; | ||
proxy_set_header X-Forwarded-Port 443; | ||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
|
||
proxy_pass http://mobsf:8000; | ||
proxy_redirect off; | ||
proxy_read_timeout 900; | ||
proxy_buffering on; | ||
} | ||
client_max_body_size 256M; | ||
} | ||
} |
This file contains 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
Oops, something went wrong.