-
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🔨 Refactor nginx config with template (#55)
* 🔨 Refactor nginx config with template * 🔨 Linting
- Loading branch information
1 parent
568a1cc
commit ac91f17
Showing
8 changed files
with
34 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Without requirements or design, programming is the art of adding bugs to an empty text file. (Louis Srygley) |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
server { | ||
{{ if not .ssl }} | ||
listen 80 default_server; | ||
{{ else }} | ||
listen 80 default_server ssl http2; | ||
{{ end }} | ||
|
||
include /etc/nginx/includes/server_params.conf; | ||
include /etc/nginx/includes/php.conf; | ||
|
||
{{ if .ssl }} | ||
include /etc/nginx/includes/ssl_params.conf; | ||
|
||
ssl_certificate /ssl/{{ .certfile }}; | ||
ssl_certificate_key /ssl/{{ .keyfile }}; | ||
{{ end }} | ||
|
||
location ~ .php$ { | ||
fastcgi_pass 127.0.0.1:9001; | ||
fastcgi_read_timeout 900; | ||
fastcgi_split_path_info ^(.+\.php)(/.+)$; | ||
fastcgi_index index.php; | ||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | ||
} | ||
} |