Giter Club home page Giter Club logo

ospanel / openserverpanel Goto Github PK

View Code? Open in Web Editor NEW
298.0 298.0 37.0 62.66 MB

Software environment for web development

Home Page: https://ospanel.io

License: Other

Batchfile 1.04% HTML 34.44% Inno Setup 2.77% Roff 0.04% JavaScript 0.06% CSS 0.03% PostScript 0.37% Awk 0.01% Shell 0.02% Perl 2.37% Visual Basic 6.0 50.41% PowerShell 0.01% PLSQL 0.01% PHP 0.01% C 7.84% Pascal 0.01% C++ 0.51% Fortran 0.02% Ruby 0.01% Python 0.05%
control-panel dev developer-tools development local local-development local-server local-web-server php server wamp wamp-server wampserver web web-dev web-development web-development-tools webdev webdevelopment

openserverpanel's Issues

Ошибка планировщика задач

В колонках 6-7 могут находится только числа и символ *
включение/выключение задания ( * или 1 - включено, 0 - выключено )

Либо ошибка в доке, либо в коде. Планировщик падает, если указать 7 колонку крона как *. Если указать число - работает.

../logs/scheduler.txt: Сообщение: Недопустимое значение плана выполнения задания

Access-Control-Allow-Origin contains multiple values

image

  • version : 6.0.0
  • php : all php versions
  • nginx : do not use

image

I am using ospanel 6.0.0 and I am experiencing issues with sending AJAX requests, causing the browser to encounter CORS errors.

The browser notice issue : Access to fetch at 'http://waterfalls.local/api/v1/user/login' from origin 'http://localhost:3000' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: The 'Access-Control-Allow-Origin' header contains multiple values '*, *', but only one is allowed. Have the server send the header with a valid value, or, if an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.

Sorry if I wrong.

Feature request: возможность кастомизированной группировки доменов в подменю

Прошу сделать возможным ручную группировку доменов в контекстом меню OSPanel по подменю разного уровня вложенности, например, следующим образом в project.ini:

[full-example.local]
submenu = Example projects
[example.com]
submenu = Work projects\Other

Это удобно, когда есть много сайтов, которые можно сгруппировать по типам, работодателю итд.

Урезание наименования системных переменных

Заметил такую особенность. Урезается наименование системной переменной, следующей за системной переменной ESC:

0129481290841902841092840912

Должно быть ES_HOME, а в окружение попадает S_HOME.

Костыльно решается изменением переменной ESC на _X_ESC в шаблоне [КОРЕНЬ_OSP6]\system\templates*osp.bat*.

php 5.x.x и apache 2.2

Товарищи! Верните, пожалуйста, эти версии пыха и апача! Очень требуются!
Много проектов нереально адаптировать под 7 и 8.
Две версии оспанела держать не хочется

Make gui version for newbie

Please, version 6.0.0 too hard for use with command. please make gui version like 5.x. thank you so muchhhhhhhh!

Не работает из Корня диска.

Прежде писал что не работает из RAMдиска.
Прошло время, решился перейти на новую версию еще раз.
Устанавливаю OSPanel в корень RAMдиска.
НЕ РАБОТАЕТ!!!

Очевидно же что я начал грешить OSPanel в RAMдиске. При том что прежняя версия OSPanel работает RAMдиске в корне.
Провёл тесты, оказалось что проблема именно корне диска.

При разных вариантах установки портативной версии и обычной.
Оказывается оба варианта в корне диска не хотят работать.

На обычный диск в корень НЕ проверял.

В трее сделать подменю - включенные модули.

Сейчас необходимо заходить в каждый модуль-подмодуль, чтобы увидеть какая версия включена.
Удобнее было бы иметь один общий список всех включенных модулей - удобнее смотреть, перезапускать.
В идеале конечно некий диспетчер процессов(задач).

Add Profiles

The suggestion is to add "profiles".
Example of a command:

project init --dir --domain --profile

The command creates a project folder, a subfolder is created .osp and the project.ini file inside

--dir - project directory, required parameter. If the projects_search_path variable does not contain the path to the project folder, the path is added.
Example:
--dir = path_to_project_directory\my_project
There is no path_to_project_directory in the projects_search_path variable - it is automatically written to the variable

--domain - The domain name for project.ini. An optional parameter. If not specified, it is created automatically by the folder name and .local
Example: my_project.local

--profile - Pre-defined profiles for projects with specific modules
Example:
default_profile.ini
nginx_engine=NGINX157
node_engine=20.20.1
php_engine=8.1
ssl=on

ets

UPDATE
I will describe it in more detail. Profiles are separate prepared program entities.

Profile example:
example_name_wordpress.ini
php_engine = PHP-8.1
node_engine = 20.20.1
ssl = on

When using the output command, we get the project directory at the path we specified with an already nested folder .osp and the generated project.ini file.

Example command:
project init C:\domains\my_project my_domain.local example_name_wordpress
We will get:
The my_project domain folder with a subfolder .osp and generated project.ini:

[my_domain.local]

php_engine = PHP-8.1
node_engine = 20.20.1
ssl = on

Ideally, after the specified modules for the domain are activated automatically.

It's really on the verge of what you want, so that you can specify subsequent commands in profiles, for example:

example_name_wordpress.ini
php_engine = PHP-8.1
node_engine = 20.20.1
ssl = on
[commands]
RU unzip wordpress.zip

and after creating the domain, activating the modules, the archive was unpacked to the project folder

Mini deployment

Nginx + PHP(Apache) предложение по стандартному конфигу

По дефолту virtual_proxied_host.conf следующий:

    location / {
        try_files $uri $uri/ =404;
        # try_files $uri $uri/ /index.php$is_args$args;
    }

    location ~ [^/]\.php(/|$) {
        proxy_cache_bypass    $http_upgrade;
        proxy_http_version    1.1;
        proxy_pass            http://$php_server:80;
        proxy_set_header      Connection $connection_upgrade;
        proxy_set_header      Host $host;
        proxy_set_header      Upgrade $http_upgrade;
        proxy_set_header      X-Forwarded-For $http_x_forwarded_for;
        proxy_set_header      X-Forwarded-Proto $scheme;
        proxy_set_header      X-Real-IP $remote_addr;
        # proxy_set_header    X-Country-Code $geoip2_data_country_code;
        # proxy_set_header    X-Country-Name $geoip2_data_country_name;
    }

Но в этом конфиге не учитывается важный аспект: не перенаправляются запросы 404 на Апач, как это типично делают в этой связке для того, чтобы задействовать правила mod_rewrite из .htaccess без необходимости ручной правки конфигов Nginx.
Конечно, можно и руками настроить Nginx и перенаправлять, но дефолтное проксирование не найденных файлов (а не только файлов php) на апач избавит от лишних телодвижений и множества тем на форуме а-ля "Помогите настроить маршруты Laravel".
Заранее спасибо.

Запуск среды из проекта

Очень было бы удобно при открытии проекта стартовать команду, к примеру: osp project без аргументов, чтобы прочитало среду из .osp текущего проекта. Иногда не помнишь точно домен, как он написан и при частой смене окружений это очень удручает.

А так, зашел в IDE -> Terminal -> osp project и все. грузится из папки .osp

или хоты бы при запуске команды osp project спрашивало какой из сред загрузить, предлагая из списка сред в текущем проекте. А лучше из всех, но из проекта, чтобы шли в начале!

Cron / Schedule / Расписание Ошибка запуска

Скопировал полностью из доки. Проверил, вроде все ок по синтаксису. Но выдает ошибку
image

При этом запустил команду в терминале и она успешно отработала
image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.