From e37da4ce1be16aa1c7ae90a8dcac915b5314a9a7 Mon Sep 17 00:00:00 2001 From: Darren <27513732@qq.com> Date: Tue, 12 Mar 2024 08:35:09 +0800 Subject: [PATCH] add gospeed --- apps/flowise/src/after_up.sh | 1 - apps/flowise/src/encrypt.sh | 12 ------- apps/flowise/src/filelist | 3 -- apps/flowise/src/get_version.sh | 1 - apps/flowise/src/nginx-proxy.conf | 57 ------------------------------- apps/flowise/src/php_exra.ini | 8 ----- apps/flowise/src/replace_url.sh | 1 - apps/gopeed/.env | 17 +++++++++ apps/gopeed/CHANGELOG.md | 5 +++ apps/gopeed/Notes.md | 1 + apps/gopeed/docker-compose.yml | 26 ++++++++++++++ apps/gopeed/src/README.md | 3 ++ apps/gopeed/variables.json | 18 ++++++++++ 13 files changed, 70 insertions(+), 83 deletions(-) delete mode 100644 apps/flowise/src/after_up.sh delete mode 100644 apps/flowise/src/encrypt.sh delete mode 100644 apps/flowise/src/filelist delete mode 100644 apps/flowise/src/get_version.sh delete mode 100644 apps/flowise/src/nginx-proxy.conf delete mode 100644 apps/flowise/src/php_exra.ini delete mode 100644 apps/flowise/src/replace_url.sh create mode 100644 apps/gopeed/.env create mode 100644 apps/gopeed/CHANGELOG.md create mode 100644 apps/gopeed/Notes.md create mode 100644 apps/gopeed/docker-compose.yml create mode 100644 apps/gopeed/src/README.md create mode 100644 apps/gopeed/variables.json diff --git a/apps/flowise/src/after_up.sh b/apps/flowise/src/after_up.sh deleted file mode 100644 index 8b1378917..000000000 --- a/apps/flowise/src/after_up.sh +++ /dev/null @@ -1 +0,0 @@ - diff --git a/apps/flowise/src/encrypt.sh b/apps/flowise/src/encrypt.sh deleted file mode 100644 index 2939685f7..000000000 --- a/apps/flowise/src/encrypt.sh +++ /dev/null @@ -1,12 +0,0 @@ -#!/bin/bash -export PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin -clear - - - -# Add encrypt script below if use W9_ENCRYPT_PASSWORD at .env file -# ------------- start ------------------------- - - - -# ------------- end --------------------------- diff --git a/apps/flowise/src/filelist b/apps/flowise/src/filelist deleted file mode 100644 index 341240aed..000000000 --- a/apps/flowise/src/filelist +++ /dev/null @@ -1,3 +0,0 @@ -docker-compose.yml -script/test.sh -docker \ No newline at end of file diff --git a/apps/flowise/src/get_version.sh b/apps/flowise/src/get_version.sh deleted file mode 100644 index 8b1378917..000000000 --- a/apps/flowise/src/get_version.sh +++ /dev/null @@ -1 +0,0 @@ - diff --git a/apps/flowise/src/nginx-proxy.conf b/apps/flowise/src/nginx-proxy.conf deleted file mode 100644 index 951364ffe..000000000 --- a/apps/flowise/src/nginx-proxy.conf +++ /dev/null @@ -1,57 +0,0 @@ -proxy_busy_buffers_size 512k; -proxy_buffers 4 512k; -proxy_buffer_size 256k; -client_max_body_size 50m; -# override default location / -location / { - add_header X-Served-By $host; - proxy_set_header Host $host; - proxy_set_header X-Forwarded-Scheme $scheme; - proxy_set_header X-Forwarded-Proto $scheme; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Real-IP $remote_addr; - proxy_pass $forward_scheme://$server:$port$request_uri; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection upgrade; - } - -location /console { - proxy_pass http://$server:8080; - proxy_http_version 1.1; - proxy_set_header Host $http_host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; -} - -# for echo some useful information -location / { - default_type text/plain; - return 200 'Hello World'; -} - -location /oida/ { -# this is the address and port of the ORDS installation -proxy_pass http://127.0.0.1:8080/ords/; - -# set Origin to blank to avoid Chrome problems with CORS -proxy_set_header Origin "" ; - -# pass along some header variables with the public host name/port/and so on -proxy_set_header Host $host; -proxy_set_header X-Forwarded-Host $host:$server_port; -proxy_set_header X-Real-IP $remote_addr; -proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; -proxy_set_header X-Forwarded-Proto $scheme; - -# this reverse proxies any "location" headers being passed in the response -proxy_redirect http://$host/ords/ https://$host/oida/; - -# also tell cookies their public path -proxy_cookie_path /ords/ /oida/; - -# reverse proxy links included in response (ie from ORDS webservice) -sub_filter_types application/json ; -sub_filter http://$host/ords/ https://$host/oida/; -sub_filter_once off; -} diff --git a/apps/flowise/src/php_exra.ini b/apps/flowise/src/php_exra.ini deleted file mode 100644 index b253d5718..000000000 --- a/apps/flowise/src/php_exra.ini +++ /dev/null @@ -1,8 +0,0 @@ -file_uploads = On -max_input_time = 800 -max_execution_time = 300 -memory_limit = 600M -upload_max_filesize = 900M -post_max_size = 900M -max_file_uploads = 200 -error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT \ No newline at end of file diff --git a/apps/flowise/src/replace_url.sh b/apps/flowise/src/replace_url.sh deleted file mode 100644 index f737258b3..000000000 --- a/apps/flowise/src/replace_url.sh +++ /dev/null @@ -1 +0,0 @@ -# some application have write url to database or config file, once replaced url at .env, it should replace it at config file or database \ No newline at end of file diff --git a/apps/gopeed/.env b/apps/gopeed/.env new file mode 100644 index 000000000..2bc8c3629 --- /dev/null +++ b/apps/gopeed/.env @@ -0,0 +1,17 @@ +W9_REPO=liwei2633/gopeed +W9_DIST=community +W9_VERSION=latest +W9_HTTP_PORT_SET=9001 + +#### -- Not allowed to edit below environments when recreate app based on existing data -- #### + +W9_ID=gopeed +W9_HTTP_PORT=9999 +W9_URL=example.com +W9_NETWORK=websoft9 +#### ----------------------------------------------------------------------------------------- #### + + +# Below environment is created by Gospeed + + diff --git a/apps/gopeed/CHANGELOG.md b/apps/gopeed/CHANGELOG.md new file mode 100644 index 000000000..582cf46c5 --- /dev/null +++ b/apps/gopeed/CHANGELOG.md @@ -0,0 +1,5 @@ +# CHANGELOG + +## Release +### Fixes and Enhancements + diff --git a/apps/gopeed/Notes.md b/apps/gopeed/Notes.md new file mode 100644 index 000000000..3e4504328 --- /dev/null +++ b/apps/gopeed/Notes.md @@ -0,0 +1 @@ +# Gospeed diff --git a/apps/gopeed/docker-compose.yml b/apps/gopeed/docker-compose.yml new file mode 100644 index 000000000..e894aed80 --- /dev/null +++ b/apps/gopeed/docker-compose.yml @@ -0,0 +1,26 @@ +# docs: https://docs.gopeed.com/install.html + +version: '3.8' + +services: + + gospeed: + image: $W9_REPO:$W9_VERSION + container_name: $W9_ID + restart: unless-stopped + command: ["-u", "admin", "-p", "123456"] + ports: + - $W9_HTTP_PORT_SET:9999 + env_file: .env + volumes: + - download:/root/Downloads + - storage:/app/storage + +volumes: + download: + storage: + +networks: + default: + name: $W9_NETWORK + external: true diff --git a/apps/gopeed/src/README.md b/apps/gopeed/src/README.md new file mode 100644 index 000000000..cdbd7a0b9 --- /dev/null +++ b/apps/gopeed/src/README.md @@ -0,0 +1,3 @@ +# About + +This folder includes files mount to container and used by Websoft9 diff --git a/apps/gopeed/variables.json b/apps/gopeed/variables.json new file mode 100644 index 000000000..5fadb2fb6 --- /dev/null +++ b/apps/gopeed/variables.json @@ -0,0 +1,18 @@ +{ + "name": "gopeed", + "trademark": "Gopeed", + "release": false, + "fork_url": "https://github.com/GopeedLab/gopeed", + "edition": [ + { + "dist": "community", + "version": ["latest"] + } + ], + "requirements": { + "cpu": "1", + "memory": "1", + "disk": "1", + "url": "https://docs.gopeed.com/install.html" + } +}