Skip to content
forked from nginx/nginx

An official read-only mirror of http://hg.nginx.org/nginx/ which is updated hourly. Pull requests on GitHub cannot be accepted and will be automatically closed. The proper way to submit changes to nginx is via the nginx development mailing list, see http://nginx.org/en/docs/contributing_changes.html

License

Notifications You must be signed in to change notification settings

TSDC-TEAM/nginx-kos

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nginx web server for KasperskyOS

This version of nginx is adapted for KasperskyOS.

What is an nginx web server for KasperskyOS?

The nginx web server for KasperskyOS is based on the nginx 1.25.1. Please refer to the http://nginx.org/en/docs/ for more information that are not related to this project.

For the nginx web server for KasperskyOS the number of worker processes can only be 1. The worker_processes directive in the nginx configuration file is ignored.

For additional details on KasperskyOS, including its limitations and known issues, please refer to the KasperskyOS Community Edition Online Help.

Table of contents

Getting started

Prerequisites

  1. Install the KasperskyOS Community Edition SDK. You can download the latest version of KasperskyOS Community Edition for free from os.kaspersky.com. Minimum required version of the KasperskyOS Community Edition SDK is 1.2. For more information, see System requirements.
  2. Copy project sources files to your home directory. All files that are required to build the nginx web server for KasperskyOS and examples of KasperskyOS-based solutions are located in the following directory:
    ./kos
    
  3. Set the environment variable SDK_PREFIX to /opt/KasperskyOS-Community-Edition-<version>, where version is the version of the KasperskyOS Community Edition SDK that you installed. To do this, run the following command:
    $ export SDK_PREFIX=/opt/KasperskyOS-Community-Edition-<version>
    

Building the nginx web server for KasperskyOS

Run the following script to build the nginx web server for KasperskyOS:

./kos/nginx/cross-build.sh

The nginx web server for KasperskyOS is built using the CMake build system, which is provided in the KasperskyOS Community Edition SDK.

Installing and removing the nginx web server for KasperskyOS

To install the nginx web server for KasperskyOS to the KasperskyOS Community Edition SDK, run the following script with root privileges:

./kos/nginx/install.sh

To remove the nginx web server for KasperskyOS from the KasperskyOS Community Edition SDK, run the following script with root privileges:

./kos/nginx/uninstall.sh

⬆ Back to Top

Usage

When you develop a KasperskyOS-based solution, use the recommended structure of project directories to simplify usage of CMake scripts.

To include the nginx web server in your KasperskyOS-based solution, follow these steps:

  1. Add the find_package() command to the ./CMakeLists.txt root file to find and load the nginx package.
    find_package (nginx REQUIRED)
    
    For more information about the ./CMakeLists.txt root file, see KasperskyOS Community Edition Online Help.
  2. Add the Nginx program to a list of program executable files defined in the ./einit/CMakeLists.txt file as follows:
    set (ENTITIES
         Nginx
         ...)
    
    For more information about the ./einit/CMakeLists.txt file for building the Einit initializing program, see the KasperskyOS Community Edition Online Help.
  3. Specify a list of IPC channels that connect the Nginx program to VfsNet and VfsRamFs programs in the ./einit/src/init.yaml.in template file. For more information about the init.yaml.in template file, see the KasperskyOS Community Edition Online Help.
  4. Create a solution security policy description in the ./einit/src/security.psl.in template file. For more information about the security.psl.in template file, see the KasperskyOS Community Edition Online Help.
  5. Add nginx configuration files to the directory ./resources.

Example

You can review the example of developing a solution using nginx web server in KasperskyOS in the ./kos/example directory.

⬆ Back to Top

Contributing

Only KasperskyOS-specific changes can be approved. See CONTRIBUTING.md for detailed instructions on code contribution.

License

This project is licensed under the terms of the nginx license. See LICENSE for more information.

⬆ Back to Top

About

An official read-only mirror of http://hg.nginx.org/nginx/ which is updated hourly. Pull requests on GitHub cannot be accepted and will be automatically closed. The proper way to submit changes to nginx is via the nginx development mailing list, see http://nginx.org/en/docs/contributing_changes.html

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 97.2%
  • Vim Script 1.9%
  • XS 0.4%
  • CMake 0.2%
  • Perl 0.1%
  • Makefile 0.1%
  • Other 0.1%