-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Clean up of environment nginx start-up
- Loading branch information
Showing
6 changed files
with
29 additions
and
70 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 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.
27 changes: 27 additions & 0 deletions
27
env/nginx/webserver/conf.d/www.naturalremedy.company.template
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,27 @@ | ||
server { | ||
listen 8080; | ||
listen [::]:8080; | ||
|
||
server_name naturalremedy.company; | ||
return 301 $scheme://www.naturalremedy.company$request_uri; | ||
} | ||
|
||
server { | ||
|
||
listen 8080; | ||
listen [::]:8080; | ||
|
||
server_name www.naturalremedy.company; | ||
|
||
set $MAGE_ROOT /home/www/naturalremedy/src; | ||
set $code default; | ||
|
||
root $MAGE_ROOT; | ||
index index.php; | ||
|
||
include /etc/nginx/defaults/magento1.conf; | ||
|
||
location / { | ||
try_files $uri $uri/ /index.php$is_args$args; | ||
} | ||
} |
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 |
---|---|---|
@@ -1,4 +1,3 @@ | ||
#!/usr/bin/env bash | ||
|
||
docker network create nginx-proxy | ||
docker-compose up -d --remove-orphans |