windows:servers:nginx:grav
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
windows:servers:nginx:grav [2024/06/28 18:22] – [PHP-CGI] Sean Rhone | windows:servers:nginx:grav [2024/08/13 18:42] (current) – removed Sean Rhone | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Information ====== | ||
- | |||
- | * Grav ((https:// | ||
- | * develop ((https:// | ||
- | * [[Information: | ||
- | * https:// | ||
- | |||
- | ===== Prerequisites ===== | ||
- | |||
- | * [[windows: | ||
- | * [[windows; | ||
- | * [[windows; | ||
- | |||
- | ===== Notes ===== | ||
- | |||
- | * :!: 2024/06/28: WIP | ||
- | |||
- | ====== Dependencies ====== | ||
- | |||
- | * https:// | ||
- | |||
- | ===== Git ===== | ||
- | |||
- | * https:// | ||
- | * Last tested: '' | ||
- | |||
- | * Git from the command line and also from 3rd-party software | ||
- | |||
- | ===== Composer ===== | ||
- | |||
- | * https:// | ||
- | * Last tested version: '' | ||
- | |||
- | ====== Download Source ====== | ||
- | |||
- | git clone --branch " | ||
- | |||
- | explorer " | ||
- | |||
- | ====== Environment ====== | ||
- | |||
- | ===== PHP ===== | ||
- | |||
- | notepad++ " | ||
- | |||
- | < | ||
- | [PHP] | ||
- | extension_dir = " | ||
- | extension=" | ||
- | extension=" | ||
- | extension=" | ||
- | extension=" | ||
- | extension=" | ||
- | |||
- | [Date] | ||
- | date.timezone = " | ||
- | |||
- | ===== Composer ===== | ||
- | |||
- | **** | ||
- | |||
- | CD " | ||
- | |||
- | ===== Grav CLI ===== | ||
- | |||
- | **** | ||
- | |||
- | CD " | ||
- | |||
- | ====== nginx + PHP-CGI Configuration ====== | ||
- | |||
- | ===== PHP-CGI ===== | ||
- | |||
- | * https:// | ||
- | |||
- | notepad++ " | ||
- | |||
- | < | ||
- | # PHP-CGI | ||
- | location ~ \.php$ { | ||
- | fastcgi_pass 127.0.0.1: | ||
- | fastcgi_split_path_info ^(.+\.php)(/ | ||
- | fastcgi_index index.php; | ||
- | include fastcgi_params; | ||
- | fastcgi_param SCRIPT_FILENAME $document_root/ | ||
- | fastcgi_intercept_errors on; | ||
- | fastcgi_param PATH_INFO $fastcgi_path_info; | ||
- | fastcgi_param HTTPS on; | ||
- | }</ | ||
- | |||
- | ==== Process ==== | ||
- | |||
- | ===== Server Block ===== | ||
- | |||
- | notepad++ " | ||
- | |||
- | < | ||
- | server { | ||
- | listen " | ||
- | http2 " | ||
- | server_name " | ||
- | root " | ||
- | index " | ||
- | |||
- | include C:/ | ||
- | include C:/ | ||
- | |||
- | client_max_body_size " | ||
- | |||
- | # add_header Content-Security-Policy " | ||
- | |||
- | # access_log | ||
- | # error_log | ||
- | |||
- | location / { | ||
- | try_files $uri $uri/ / | ||
- | } | ||
- | |||
- | location ~* / | ||
- | location ~* / | ||
- | location ~* / | ||
- | location ~ / | ||
- | |||
- | }</ | ||
- | |||
- | " | ||
- | |||
- | ====== Initial Setup ====== | ||
- | |||
- | * https:// | ||
- | * :!: If Joomla gives a 500 error, it's likely the '' | ||
- | |||
- | ====== Settings ====== | ||
- | |||
- | ===== Purity III Template ===== | ||
- | |||
- | * [[https:// | ||
- | |||
- | ==== Install ==== | ||
- | |||
- | * [[https:// | ||
- | * Install T3 Framework and Purity III from that downloads page | ||
- | |||
- | ==== System Dashboard ==== | ||
- | |||
- | * Templates -> Site Template Styles | ||
- | * Set '' | ||
- | |||
- | ==== Theme Settings ==== | ||
- | |||
- | * General -> Show T3 Logo: Off | ||
- | |||
- | * Theme -> Logo Type: Text | ||
- | * Theme -> Site Name: '' | ||
- | |||
- | * Navigation -> Megamenu Configuration -> Animation: Fading | ||
- | * Navigation -> Megamenu Configuration -> Duration: '' | ||
- | |||
- | * Add-ons -> Off-canvas Sidebar -> Enable: Off | ||
- | |||
- | * Assignment -> Toggle Selection | ||
- | |||
- | ==== Footer ==== | ||
- | |||
- | === Copyright === | ||
- | |||
- | * Last tested: 2024/02/01 on Joomla 5.1.0-dev, T3 Framework 3.2.0, and Purity III 2.1.0 | ||
- | |||
- | == Logo == | ||
- | |||
- | **** | ||
- | |||
- | wget -O '/ | ||
- | |||
- | == Text == | ||
- | |||
- | * Place text within the ''< | ||
- | * Remove '' | ||
- | |||
- | sudo -e '/ | ||
- | |||
- | < | ||
- | < | ||
- | <img src=" | ||
- | </ | ||
- | |||
- | ==== Custom CSS ==== | ||
- | |||
- | * :!: This shrinks the footer height, and places it back at the bottom of the screen instead of floating half-way up the page when little content exists ([[https:// | ||
- | * Also replaces ThemeMagic for Brand Primary Color, Footer Background, and Footer Text Color | ||
- | |||
- | * Last tested: 2024/02/01 on Joomla 5.1.0-dev, T3 Framework 3.2.0, and Purity III 2.1.0 | ||
- | |||
- | sudo -e '/ | ||
- | |||
- | < | ||
- | html, | ||
- | |||
- | body { | ||
- | height: 100%; | ||
- | } | ||
- | |||
- | a { | ||
- | color: #3D8BFF; | ||
- | } | ||
- | |||
- | a:hover { | ||
- | color: #196BE4; | ||
- | } | ||
- | |||
- | .t3-mainnav { | ||
- | background-color: | ||
- | } | ||
- | |||
- | .logo a { | ||
- | background: none; | ||
- | } | ||
- | |||
- | .logo a:hover { | ||
- | background: #196BE4; | ||
- | } | ||
- | |||
- | .t3-wrapper { | ||
- | position: relative; | ||
- | min-height: 100%; | ||
- | } | ||
- | |||
- | .t3-footer { | ||
- | position: absolute; | ||
- | bottom: 0; | ||
- | left: 0; | ||
- | right: 0; | ||
- | background-color: | ||
- | color: #FFFFFF; | ||
- | } | ||
- | |||
- | .t3-copyright { | ||
- | padding-top: | ||
- | padding-bottom: | ||
- | }</ | ||
- | |||
- | ===== Articles ===== | ||
- | |||
- | ==== Home ==== | ||
- | |||
- | * The line-breaks are intentional and are there to make how it displays look nicer | ||
- | * Add links to '' | ||
- | |||
- | < | ||
- | |||
- | |||
- | Welcome! Realm of Espionage is a personal project composed of various services. All services on RoE are free and open-source, | ||
- | |||
- | |||
- | |||
- | This domain serves as a landing page and provides links to my most-used profiles and projects. To view them, use the navigation bar (desktop) or the ≡ hamburger icon (mobile) at the top of the screen. | ||
- | |||
- | </ | ||
- | |||
- | ===== Menus ===== | ||
- | |||
- | * Main menu headers are: System Links -> URL -> ''#'' | ||
- | * Icon sizes are 24x24 | ||
- | * Menu entries should be named normally before saving for a proper '' | ||
- | |||
- | ===== Global Configuration ===== | ||
- | |||
- | ==== Site Meta Description ==== | ||
- | |||
- | **** | ||
- | |||
- | Realm of Espionage is a personal project composed of various self-hosted services. All services are hosted in-house under secure conditions, and notes are provided for all services under the CC-BY-SA 4.0 license. | ||
- | |||
- | ==== Content Rights ==== | ||
- | |||
- | **** | ||
- | |||
- | Creative Commons Attribution-ShareAlike 4.0 International | ||
- | |||
- | ==== Articles ==== | ||
- | |||
- | * System -> Global Configuration -> Articles | ||
- | |||
- | * Show Title: Hide | ||
- | * Show Category: Hide | ||
- | * Show Author: Hide | ||
- | * Show Publish Date: Hide | ||
- | * Show Navigation: Hide | ||
- | * Show Print: Hide | ||
- | * Show Email: Hide | ||
- | * Show Hits: Hide | ||
- | |||
- | ==== Menu ==== | ||
- | |||
- | * Menus -> Main Menu -> Home -> Link Type -> Display in Menu: No | ||
- | * Menus -> Main Menu -> Home -> Page Display -> Show Page Heading: Hide | ||
- | |||
- | ====== Batch Files ====== | ||
- | |||
- | ===== PHP-CGI ===== | ||
- | |||
- | notepad++ " | ||
- | |||
- | < | ||
- | CD " | ||
- | |||
- | SET PHP_FCGI_MAX_REQUESTS=" | ||
- | SET PHP_FCGI_CHILDREN=" | ||
- | |||
- | START "Main PHP-CGI" | ||
- | |||
- | :: End</ | ||
- | |||
- | " | ||
C:/www/wiki/data/attic/windows/servers/nginx/grav.1719613334.txt.gz · Last modified: by Sean Rhone