Add Nginx-1.22 module

This commit is contained in:
OSPanel 2024-03-26 23:11:34 +03:00
parent f15c986f43
commit 07038975a4
82 changed files with 595 additions and 5 deletions

View file

@ -27,16 +27,16 @@ VersionInfoCopyright = Copyright (c) 2010-{#CurrentYear}, {#AppDomain}
// Compression
// Compression = lzma2/fast
Compression = lzma2/ultra64
Compression = lzma2/fast
// Compression = lzma2/ultra64
InternalCompressLevel = ultra64
LZMAUseSeparateProcess = yes
SolidCompression = yes
LZMABlockSize = 262144
LZMADictionarySize = 262144
LZMANumBlockThreads = 4
LZMANumFastBytes = 273
// LZMANumFastBytes = 32
// LZMANumFastBytes = 273
LZMANumFastBytes = 32
// Misc
@ -145,7 +145,10 @@ Name: "mysql\mysql57"; Description: "MySQL 5.7"; Types: full co
Name: "mysql\mysql80"; Description: "MySQL 8.0"; Types: full compact; Flags: disablenouninstallwarning; check: IsWindows10OrNewer
Name: "mysql\mysql82"; Description: "MySQL 8.2"; Types: full compact; Flags: disablenouninstallwarning; check: IsWindows10OrNewer
Name: "nginx"; Description: "Nginx"; Types: full compact; Flags: disablenouninstallwarning; check: IsWindows10OrNewer
Name: "nginx"; Description: "Nginx"; Flags: disablenouninstallwarning
Name: "nginx\nginx122"; Description: "Nginx 1.22"; Types: full; Flags: disablenouninstallwarning
Name: "nginx\nginx125"; Description: "Nginx 1.25"; Types: full compact; Flags: disablenouninstallwarning
Name: "perl"; Description: "Perl"; Types: full; Flags: disablenouninstallwarning
Name: "php"; Description: "PHP"; Flags: disablenouninstallwarning
@ -303,6 +306,9 @@ Source: "modules\Redis-7.2\*"; DestDir: "{app
Source: "modules\Bind\*"; DestDir: "{app}\modules\Bind"; Flags: sortfilesbyextension sortfilesbyname ignoreversion recursesubdirs createallsubdirs confirmoverwrite; Components: dns\bind; Permissions: users-full
Source: "modules\Unbound\*"; DestDir: "{app}\modules\Unbound"; Flags: sortfilesbyextension sortfilesbyname ignoreversion recursesubdirs createallsubdirs confirmoverwrite; Components: dns\unbound; Permissions: users-full
Source: "modules\Nginx-1.22\*"; DestDir: "{app}\modules\Nginx-1.22"; Flags: sortfilesbyextension sortfilesbyname ignoreversion recursesubdirs createallsubdirs confirmoverwrite; Components: nginx\nginx122; Permissions: users-full
Source: "modules\Nginx-1.25\*"; DestDir: "{app}\modules\Nginx-1.25"; Flags: sortfilesbyextension sortfilesbyname ignoreversion recursesubdirs createallsubdirs confirmoverwrite; Components: nginx\nginx125; Permissions: users-full
Source: "modules\ControlPanel\ospanel_data\default\*"; DestDir: "{app}\config\ControlPanel\default"; Flags: sortfilesbyextension sortfilesbyname ignoreversion recursesubdirs createallsubdirs confirmoverwrite solidbreak; Components: core; Permissions: users-full
Source: "modules\PHP-7.2\ospanel_data\default\*"; DestDir: "{app}\config\PHP-7.2\default"; Flags: sortfilesbyextension sortfilesbyname ignoreversion recursesubdirs createallsubdirs confirmoverwrite solidbreak; Components: php\php72; Permissions: users-full
@ -375,6 +381,9 @@ Source: "modules\Redis-7.2\ospanel_data\default\*"; DestDir: "{app
Source: "modules\Bind\ospanel_data\default\*"; DestDir: "{app}\config\Bind\default"; Flags: sortfilesbyextension sortfilesbyname ignoreversion recursesubdirs createallsubdirs confirmoverwrite; Components: dns\bind; Permissions: users-full
Source: "modules\Unbound\ospanel_data\default\*"; DestDir: "{app}\config\Unbound\default"; Flags: sortfilesbyextension sortfilesbyname ignoreversion recursesubdirs createallsubdirs confirmoverwrite; Components: dns\unbound; Permissions: users-full
Source: "modules\Nginx-1.22\ospanel_data\default\*"; DestDir: "{app}\config\Nginx-1.22\default"; Flags: sortfilesbyextension sortfilesbyname ignoreversion recursesubdirs createallsubdirs confirmoverwrite; Components: nginx\nginx122; Permissions: users-full
Source: "modules\Nginx-1.25\ospanel_data\default\*"; DestDir: "{app}\config\Nginx-1.25\default"; Flags: sortfilesbyextension sortfilesbyname ignoreversion recursesubdirs createallsubdirs confirmoverwrite; Components: nginx\nginx125; Permissions: users-full
Source: "modules\PHP-7.2\ospanel_data\default_data\*"; DestDir: "{app}\data\PHP-7.2\default"; Flags: sortfilesbyextension sortfilesbyname ignoreversion recursesubdirs createallsubdirs uninsneveruninstall confirmoverwrite solidbreak; Components: php\php72; Permissions: users-full
Source: "modules\PHP-7.3\ospanel_data\default_data\*"; DestDir: "{app}\data\PHP-7.3\default"; Flags: sortfilesbyextension sortfilesbyname ignoreversion recursesubdirs createallsubdirs uninsneveruninstall confirmoverwrite; Components: php\php73; Permissions: users-full
Source: "modules\PHP-7.4\ospanel_data\default_data\*"; DestDir: "{app}\data\PHP-7.4\default"; Flags: sortfilesbyextension sortfilesbyname ignoreversion recursesubdirs createallsubdirs uninsneveruninstall confirmoverwrite; Components: php\php74; Permissions: users-full

View file

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:159326c9b63e53287e2609c9d9c6d7491414c0347888e867c8ce6a49c6e0a580
size 61440

View file

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:bc78fe51b9a9f0043f12a540b25a2597e1de82349fac01ac14bf32f71d579bf2
size 137216

View file

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:77919d9330a57f4271b7d50f5151a2fbb3e7a81a37aa9c574bf83a3ed5288dd5
size 3344384

View file

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:162b03629b54b2b260ee9ea697d1935a3e0f6d6bf7b5cd16b302bf8f0c58a1b3
size 1416

View file

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:162b03629b54b2b260ee9ea697d1935a3e0f6d6bf7b5cd16b302bf8f0c58a1b3
size 1416

View file

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:b5f8a6d411db5e5d11d151d50cd1e962444732593adec0e1ef0a8c6eebec63ee
size 2837

View file

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:de518a9eafe86c8bc705e296d0ef26135835b46bdc0de01d1d50a630fa5d341e
size 2223

View file

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:6a53a8c47436bcc537e9da12c63958373b6ffd95a62d56ca7f9540fbf76b4c8c
size 10138

View file

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:f27b2027c571ccafcfb0fbb3f54d7aeee11a984e3a0f5a1fdf14629030fc9011
size 636

View file

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:015cb581c2eb84b1a1ac9b575521d5881f791f632bfa62f34b26ba97d70c0d4f
size 664

View file

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:b9e818b9a7c76ddb17452b4f98c2d625cf536bda37932f1305e0d43471a89b72
size 1027

View file

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:940d73c359450d70ae17a75b5bef3381c61a7844967e0cb0ea8b5c5a7fdca90e
size 1321

View file

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:55adf050bad0cb60cbfe18649f8f17cd405fece0cc65eb78dac72c74c9dad944
size 3610

View file

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:0f4908c9fc73ea40c264da0ab23041c9926ddfa3c8c639f734900a4c203491a5
size 543

View file

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:710cc6ea2fefe73c908addf6cb84c08f1da1310ddd9fba87f3bd8c87e3d4a350
size 1272

View file

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:cbb9fbae8d0987b4a1547fa48135ed1c890f58e7789acee064026678dbef5cd6
size 5991

View file

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:1cc5bfd4262ea8db2fc575459d1e3b3fd2a4a5a8b2697f1080d7514f5a4d7910
size 1090

View file

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:295ec71cb7b92198c02f4042727147b3ea069dc61d78693725783ce0ac74ec02
size 5339

View file

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:3ce32b22f5c741f95ec432aad87cce5ec02b6e41eecc0a5e1177018ca455a043
size 198

View file

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ed7a438f9238b4054ed58a88a15625e5a3984fb07f6ed0395b062c04545adea8
size 29

View file

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:983c89c6ebcd4b6f61dcba4424608890d0deae79a21c0830441917e1eb54b358
size 250

View file

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a23e4b422421bc44efa916d928d68feccd6dc87efcfd4a08fb3c503e17f63257
size 139316

View file

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:cc7f4932e6f4a5f317020b5a26aed13f132b461fe1179359b600937212fb422c
size 317399

View file

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:965704dacc18cc3c116d044a28a6b8688cc577980f0c32d49c183aabc377659a
size 485035

View file

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ececed0b0e7243a4766cbc62b26df4bd3513b41de3a07425da1679c836d06320
size 1397

View file

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:c32913b33252e71190af2066f08115c69bc9fddadf3bf29296e20c835389841c
size 6121

View file

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:030087e2e8dd7c1bdd26057d25d4ded8f45bbf01ad458d68665ad04b8b0fbedf
size 3477

View file

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:691626fab75efb683563712cdb72e8d25ff50f3aefe71a770db06a0406cc825d
size 49

View file

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d05dccb7f5643d5faf8a624a24986f7f470c78613b7a4032679d5aa3bc8618f3
size 983

View file

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:1283c234f463ac13eb3261608a8dc152018d99cdba2f4c7c0fe7e8229e2494d8
size 1379103

View file

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:02e70d674f44efeea4e5c90c1305d6bd2c305c5a5231b389cc369c80bc92edaf
size 258325

View file

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:4ab688c7c5c4afdfee0f519f942759137067a7876a1c1bb825ee575b0a5760b1
size 761261

View file

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d970a58d5341aa49819822ce14d1b581352e28900004aeb71475a488c88b4391
size 6944963

View file

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:1754d1073a1f4aa29784361c7a12ba4a8b3f4e1544999dbdf400fac25afd519d
size 88541

View file

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e884bb7d4e1fb2b8cfac0d73e9417a9717de50981924eb535ff25ee44f16062b
size 9052417

View file

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d8e9f9d854209ea9ef7baf77d7f6f84409621c254b30a003997a199faf71575f
size 226550

View file

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:62f363f6aac0d54ce7b115c0412b19e0fe5480f4e6fc1254f663b0ab6868e46f
size 143397

View file

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:7d6c0f954b6f2db1c1c5fd5904886ae055859a02ca31b6dde5f96f6b0259d23f
size 60412

View file

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:25c92440489a05ee6ed13c6a9ef29a23f5eb750f978df3063a2d84ba0bee7a7a
size 721803

View file

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:b79cd3a7102e359ef6324e98966a67939e58ec2b651ae2847cae84a4dfa453f7
size 100964

View file

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:db302a75a7e666e641cfb238daeeb82e74ba84fe5e6f10fe4231e20b32c57a93
size 4178904

View file

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:927e26f1ee171ff09e2cd1de562659b1ce0ea6f9d2d43a1150bafb69074b4499
size 1810903

View file

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a5d94e1a41f6ecee059da6269b7e63273993ae98fcf09066ea292376e7f3c58f
size 729608

View file

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e5938e948d50d3be1f1adf4bdbde75f39f7b32bb43d3c6ebb6d891a732c4b5bb
size 81819

View file

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:93baa55d8ab07abc56b04b7130166348bdd7681034414a299a9face9bd2246ef
size 188397

View file

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:3466b2077874befc861b508ad031202be322bf85edb965b52a491fc896b74dbd
size 322934

View file

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:5297f754dfca04abdb0d21705d5afc3c4122aa25c7afbdd87900313cb780c868
size 776690

View file

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:252dec79246c013d8b32e4b1a034626965c55853aec32c5cafcd643b90d018db
size 150259

View file

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:3518c655a8391082447f86c002547ecc4e435d40da5af84d75c4119e3e19e3eb
size 117427

View file

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:46e5b0cdab3f416339bd5d4fcc69dc1a81a5f198eed3acc81b67a22532b0ca15
size 455589

View file

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:74561628a080a9962bc78bfd402608798a87f4a4eb25266466d910e3d011dcf8
size 1438528

View file

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:f927efecd958f0e54a24ae297f86cd6aed05e7fc20e5da0882050ab9ec464395
size 152538

View file

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:52ad06f04d6a3c190199b454f48d5e993dd7c2cf93f331a6bf87a19eed0bf511
size 1272801

View file

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:3e65c678b1ded3facace981d94274c6d07959f21675aaa86c2f9df5ce99e51ec
size 976823

View file

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:967189adfbc889fde89aafc867f7a1f02731f8592cf6fd5a4ace1929213e2e13
size 1118202

View file

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:b816b884cab2db96ca0e450e69b29ca203cf984903aea8046f4c1cdb0a65f9fb
size 187657

View file

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:275a827ba6839d47cfdbe059db1b1b403a92ff26e2b76a29362915487868bef2
size 62083

View file

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:4342cced309104c858b5e506a7c3dc1a7018764908b1d65bb6f4b3ff164c78f5
size 928587

View file

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:1975bdbdf7af4361024eeed9a1c33d6c15759a7c707a817effc75d2b5c4cdbaf
size 525888

View file

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:6e4b98d3d597aa7046556a6847f9cc736ae415ced70b1530c81ea860feea4070
size 184229

View file

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d7d16389d3aeab2b863698986ed10fa69f467068124293267ace10609e90f268
size 296220

View file

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:655d7616e1ca4e3e0970a39c05d61522b3eb76435b5c7e5d3bc488aead033558
size 463218

View file

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:b9e1acb2ba4c96b9b52bfa5ec25b169e5cb52e688de026c2d964af42e92081e1
size 393081

View file

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:00863832ffd696c27032bbbba54751a3af1b6ea25c81be918f1c49c6d618f0de
size 247380

View file

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9bc9d9f7b2015f05326999874fa94bc26bbe85d2798a0655ea615e4b5dedf8e1
size 32271

View file

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ddfbcbd0f0f005d3c8543ecf03125ee2c609a8e6df2ddf25c53f7acd108780aa
size 52132

View file

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:3dc315ce37be169cc51069f9f5629e687b660e9dca98b68d288b0ad2471a7758
size 2345455

View file

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e000306d3de299b05ebef443e48c1486d9fa291b0244f6ca6225843b75fdf581
size 576887

View file

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d5a256f452f07c15bfc735a6294d8df5445c3a07b372e8731cda1575a280892a
size 750718

View file

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:c944ee510721a1d30d42227cc3061dfdcbc144c952381afcfe4f6e82c5435ffc
size 60798

View file

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:8ae4819824717850e1b8fd191f5fefd47edc6ac57ec496169c7c0f5d8c5fb1f4
size 20159542

View file

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ee418469ffa688a9bc077c7571a9f95c7f4a0c071a7c83c4e9cdb6015dc8d19c
size 1022138

View file

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:03fbbf1f2cb5e6be9a9b57dae4d9af403f831a13618eefd6ca8b1271c28a5b27
size 1165512

View file

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:2fa5a01424e4295a6d01524082913c94013f403089ec9042bc5b931add5c8719
size 12620016

View file

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9ec2e0ced3b52320fef7b5de522ae6d90a19cecda65ace6eda1d2d1b70ce9874
size 4437504

View file

@ -0,0 +1,44 @@
[main]
ip = 127.127.126.63
clean_directories = {root_dir}\temp\{module_name}\{profile_name}
log_directory = {root_dir}\logs\{module_name}
log_level_values = emerg alert crit error warn notice info debug
log_level = error
ssl_auto_cert = on
start_command = "{root_dir}\modules\{module_name}\nginx.exe" -c "{root_dir}\modules\{module_name}\conf\nginx.conf" -e "{root_dir}\logs\{module_name}\error.log"
start_directory = {root_dir}\modules\{module_name}
work_directories = {root_dir}\logs\domains {root_dir}\temp\{module_name}\{profile_name}
allowed_env_vars = auto
log_max_filesize = auto
log_write_title = auto
max_probation_fails = auto
max_shutdown_time = auto
probation = auto
silent_mode = auto
terminal_codepage = auto
time_zone = auto
[nginx.conf]
comment = #
destination = {root_dir}\modules\{module_name}\conf\nginx.conf
enabled = on
encoding = UTF8
path_separator = /
[env.bat]
comment = ::
destination = {root_dir}\data\controlpanel\env_{module_name}.bat
enabled = on
encoding = UTF8
path_separator = \
source_dir = {root_dir}\system\templates
[environment]
PATH = {root_dir}\modules\{module_name};%PATH%
TEMP = {root_dir}\temp\{module_name}\{profile_name}
TMP = {root_dir}\temp\{module_name}\{profile_name}

View file

@ -0,0 +1,272 @@
#--------------------------------
# General
#--------------------------------
daemon off;
error_log '{root_dir}/logs/{module_name}/error.log' {log_level}; # debug, info, notice, warn, error, crit, alert, emerg
pcre_jit on;
pid '{root_dir}/temp/{module_name}.pid';
worker_processes 1;
events {
multi_accept on;
use poll;
worker_connections 4096;
}
http {
#--------------------------------
# GeoIP
#--------------------------------
# geoip_country '{root_dir}/user/geo/GeoIPv6.dat';
# map $geoip_country_code $geoip_blacklisted_country {
# default no;
# AU yes;
# }
#--------------------------------
# GeoIP2
#--------------------------------
# geoip2 '{root_dir}/user/geo/dbip-country-lite.mmdb' {
# auto_reload 15m;
# $geoip2_metadata_country_build metadata build_epoch;
# $geoip2_data_country_code default=— source=$remote_addr country iso_code;
# $geoip2_data_country_name default=— source=$remote_addr country names en;
# }
# map $geoip2_data_country_code $geoip2_blacklisted_country {
# default no;
# AU yes;
# }
#--------------------------------
# Maps
#--------------------------------
# map $request_uri $loggable {
# default 1;
# ~^/pictures/ 0;
# }
# map $status $log_not_found {
# default 0;
# 404 1;
# }
map $request_uri $request_uri_path {
default $request_uri;
'~^([^?]*)(\?.*)?$' $1;
}
map $http_upgrade $connection_upgrade {
default upgrade;
'' '';
}
map $sent_http_content_type $expires {
default 1d;
~*application/atom\+xml 1h;
~*application/rdf\+xml 1h;
~*application/rss\+xml 1h;
~*application/json epoch;
~*application/ld\+json epoch;
~*application/schema\+json epoch;
~*application/geo\+json epoch;
~*application/xml epoch;
~*text/calendar epoch;
~*text/html epoch;
~*text/plain epoch;
~*text/markdown epoch;
}
map $sent_http_content_type $x_frame_options {
default '';
~*text/html SAMEORIGIN;
}
map $sent_http_content_type $referrer_policy {
default '';
~*text/html 'strict-origin-when-cross-origin';
}
map $sent_http_content_type $acao_policy {
default '*';
}
# map $sent_http_content_type $cs_policy {
# default '';
# ~*text/(html|javascript)|application/pdf|xml "default-src 'self'; base-uri 'none'; connect-src 'self'; font-src 'self'; form-action 'self'; frame-ancestors 'self'; frame-src 'self'; manifest-src 'self'; media-src 'self'; object-src 'none'; script-src 'self' 'unsafe-inline' 'unsafe-eval'; img-src 'self' data:; style-src 'self' 'unsafe-inline'; upgrade-insecure-requests";
# }
# map $sent_http_content_type $coe_policy {
# default '';
# ~*text/html|application/(javascript|pdf)|xml 'require-corp';
# }
# map $sent_http_content_type $coo_policy {
# default '';
# ~*text/html|application/(javascript|pdf)|xml 'same-origin';
# }
# map $sent_http_content_type $cor_policy {
# default '';
# ~*text/html|application/(javascript|pdf)|xml 'same-origin';
# }
# map $sent_http_content_type $perm_policy {
# default '';
# ~*text/(html|javascript)|application/pdf|xml 'accelerometer=(),autoplay=(),camera=(),display-capture=(),document-domain=(),encrypted-media=(),fullscreen=(),geolocation=(),gyroscope=(),magnetometer=(),microphone=(),midi=(),payment=(),picture-in-picture=(),publickey-credentials-get=(),screen-wake-lock=(),sync-xhr=(self),usb=(),web-share=(),xr-spatial-tracking=()';
# }
#--------------------------------
# Brotli
#--------------------------------
brotli on;
brotli_buffers 256 4k;
brotli_comp_level 5;
brotli_min_length 1024;
brotli_types application/atom+xml application/json application/ld+json application/rss+xml application/geo+json application/xml application/rdf+xml application/javascript application/wasm application/manifest+json application/x-web-app-manifest+json text/cache-manifest image/svg+xml font/woff font/woff2 application/vnd.ms-fontobject font/ttf font/collection font/otf text/css text/csv text/plain text/x-component text/markdown text/calendar text/vcard text/vtt application/rtf application/pdf application/x-x509-ca-cert application/xhtml+xml application/xslt+xml application/schema+json;
#--------------------------------
# Gzip
#--------------------------------
gzip on;
gzip_buffers 256 4k;
gzip_comp_level 5;
gzip_min_length 1024;
gzip_proxied any;
gzip_types application/atom+xml application/json application/ld+json application/rss+xml application/geo+json application/xml application/rdf+xml application/javascript application/wasm application/manifest+json application/x-web-app-manifest+json text/cache-manifest image/svg+xml font/woff font/woff2 application/vnd.ms-fontobject font/ttf font/collection font/otf text/css text/csv text/plain text/x-component text/markdown text/calendar text/vcard text/vtt application/rtf application/pdf application/x-x509-ca-cert application/xhtml+xml application/xslt+xml application/schema+json;
gzip_vary on;
#--------------------------------
# Headers
#--------------------------------
expires $expires;
add_header Access-Control-Allow-Origin $acao_policy always;
add_header Referrer-Policy $referrer_policy always;
add_header Timing-Allow-Origin '*' always;
add_header X-Content-Type-Options nosniff always;
add_header X-Frame-Options $x_frame_options always;
# add_header Content-Security-Policy $cs_policy always;
# add_header Cross-Origin-Embedder-Policy $coe_policy always;
# add_header Cross-Origin-Opener-Policy $coo_policy always;
# add_header Cross-Origin-Resource-Policy $cor_policy always;
# add_header Permissions-Policy $perm_policy always;
# add_header Strict-Transport-Security 'max-age=86400; includeSubDomains' always;
#--------------------------------
# Logs
#--------------------------------
log_format main '[$time_local] $host: $remote_addr "$http_x_forwarded_for" $status "$request" $body_bytes_sent "$http_referer" "$http_user_agent"';
# log_format post_log '[$time_local] $host: $remote_addr "$http_x_forwarded_for" $status "$request" $body_bytes_sent $request_body';
log_not_found on;
log_subrequest off;
access_log '{root_dir}/logs/{module_name}/access.log' main;
#--------------------------------
# Options
#--------------------------------
autoindex on;
autoindex_localtime on;
autoindex_exact_size off;
include mime.types;
charset utf-8;
charset_types application/atom+xml application/json application/ld+json application/rss+xml application/geo+json application/xml application/rdf+xml application/javascript application/wasm application/manifest+json application/x-web-app-manifest+json text/cache-manifest text/css text/csv text/plain text/x-component text/markdown text/calendar text/vcard text/vtt application/rtf application/pdf application/x-x509-ca-cert application/xhtml+xml application/xslt+xml application/schema+json;
client_body_buffer_size 64k;
client_max_body_size 50m;
default_type application/octet-stream;
# ignore_invalid_headers off;
index index.php index.html index.htm;
# max_ranges 1;
# open_file_cache max=1024;
open_log_file_cache max=1024;
reset_timedout_connection on;
# resolver 1.1.1.1 1.0.0.1 8.8.8.8 8.8.4.4 ipv6=off;
resolver_timeout 15s;
server_names_hash_bucket_size 64;
server_names_hash_max_size 4096;
server_tokens off;
tcp_nodelay on;
types_hash_bucket_size 64;
types_hash_max_size 4096;
variables_hash_bucket_size 64;
variables_hash_max_size 4096;
#--------------------------------
# PHP FastCGI
#--------------------------------
fastcgi_buffering off;
fastcgi_connect_timeout 15s;
fastcgi_keep_conn on;
fastcgi_ignore_client_abort off;
fastcgi_index index.php;
fastcgi_intercept_errors on;
fastcgi_read_timeout 10m;
fastcgi_send_timeout 10m;
#--------------------------------
# Proxy
#--------------------------------
proxy_buffering off;
proxy_connect_timeout 15s;
proxy_ignore_client_abort off;
proxy_intercept_errors on;
proxy_http_version 1.1;
proxy_read_timeout 10m;
proxy_send_timeout 10m;
#--------------------------------
# SSL
#--------------------------------
ssl_ciphers HIGH:!aNULL:!MD5:!CAMELLIA:!SHA1:!SHA256:!SHA384;
ssl_dhparam '{root_dir}/user/ssl/dhparam.pem';
ssl_prefer_server_ciphers off;
ssl_protocols TLSv1.2 TLSv1.3;
ssl_session_cache shared:SSL:10m;
ssl_session_tickets off;
ssl_session_timeout 1d;
ssl_stapling off;
ssl_stapling_verify off;
ssl_trusted_certificate '{root_dir}/data/ssl/cacert.pem';
#--------------------------------
# Temp
#--------------------------------
client_body_temp_path '{root_dir}/temp/{module_name}/{profile_name}/client_temp' 1 2;
fastcgi_temp_path '{root_dir}/temp/{module_name}/{profile_name}/fastcgi_temp' 1 2;
proxy_temp_path '{root_dir}/temp/{module_name}/{profile_name}/proxy_temp' 1 2;
scgi_temp_path '{root_dir}/temp/{module_name}/{profile_name}/scgi_temp' 1 2;
uwsgi_temp_path '{root_dir}/temp/{module_name}/{profile_name}/uwsgi_temp' 1 2;
#--------------------------------
# Zones
#--------------------------------
# limit_conn_log_level warn;
# limit_conn_zone $binary_remote_addr zone=ip_zone:16m;
# limit_conn_zone '$binary_remote_addr$request_uri_path' zone=ip_uri_zone:16m;
# limit_req_log_level warn;
# limit_req_zone $binary_remote_addr zone=ip_flood:16m rate=64r/s;
# limit_req_zone '$binary_remote_addr$request_uri_path' zone=ip_uri_flood:16m rate=16r/s;
#--------------------------------
# Virtual Hosts
#--------------------------------
{nginx_hosts}
}

View file

@ -0,0 +1,15 @@
Usage: nginx [-?hvVtTq] [-s signal] [-p prefix]
[-e filename] [-c filename] [-g directives]
Options:
-?,-h : this help
-v : show version and exit
-V : show version and configure options then exit
-t : test configuration and exit
-T : test configuration, dump it and exit
-q : suppress non-error messages during configuration testing
-s signal : send signal to a master process: stop, quit, reopen, reload
-p prefix : set prefix path (default: NONE)
-e filename : set error log file (default: error.log)
-c filename : set configuration file (default: conf/nginx.conf)
-g directives : set global directives out of configuration file

View file

@ -0,0 +1,19 @@
; WARNING! DO NOT EDIT THIS FILE!
[main]
architecture = x64
category = Nginx
class = Web
ipv6_support = yes
ip_separator =
license = https://nginx.org/LICENSE
license_type = FreeBSD License
min_windows_ver = 6.1.7601
timestamp = 1651770000
version = 1.22.1
[docs]
English = https://nginx.org/en/docs/
Russian = https://nginx.org/ru/docs/

View file

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:f919dd282ae0e4cf21ab932de0212fb0eb0f021f102fec80edcac66d578e39a4
size 3439052

View file

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:cb7ab3788d10940df874acd97b1821bbb5ee4a91f3eec11982bb5bf7a3c96443
size 120814