Skip to content

sonassi/nginx-sync

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Installation

git clone https://github.com/sonassi/nginx-sync.git
cd nginx-sync
composer update

Usage

php-5.6 app.php --help
 app.php


-f/--output-file <argument>
     Required. Output file to write to


--help
     Show the help page for this command.


-r/--reload <argument>
     Configtest and reload Nginx


-t/--template <argument>
     Required. Template to apply CSV reformatting to


-u/--url <argument>
     Required. URL to CSV file

Templates

The templates use Laravel's Blade format and can be found in,

vendor-dev/sonassi/nginx-sync/src/views

Examples

Using Google sheets as source

php-5.6 app.php --url 'https://docs.google.com/spreadsheets/d/xxx?output=csv' --output-file '/microcloud/domains/example/domains/example.com/___general/example.com.conf' --template 'admin-whitelist' -r
Success: File (example.conf) written successfully.
Success: Nginx reload completed successfully.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published