Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
182 additions
and
59 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
FROM spira/docker-nginx-php:latest | ||
|
||
MAINTAINER "Zak Henry" <zak.henry@gmail.com> | ||
|
||
ADD . /data |
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,33 @@ | ||
server { | ||
client_max_body_size 20M; | ||
listen 8080; | ||
|
||
root /data/public; | ||
index index.php index.html index.htm; | ||
|
||
access_log /var/log/nginx/access-api.log; | ||
error_log /var/log/nginx/error-api.log warn; | ||
|
||
location / { | ||
try_files $uri $uri/ /index.php?$query_string; | ||
} | ||
|
||
# location /api/ { | ||
# proxy_pass http://127.0.0.1:8080/; | ||
# proxy_set_header Host $host; | ||
# proxy_set_header X-Real-IP $remote_addr; | ||
# proxy_set_header X-Forwarded-for $remote_addr; | ||
# port_in_redirect off; | ||
# proxy_connect_timeout 300; | ||
# } | ||
|
||
location ~ \.php$ { | ||
include fastcgi.conf; | ||
fastcgi_pass fastgci_backend; | ||
fastcgi_param SCRIPT_FILENAME $request_filename; | ||
} | ||
|
||
location ~ /\.ht { | ||
deny all; | ||
} | ||
} |
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,5 @@ | ||
FROM spira/docker-nginx-php:latest | ||
|
||
MAINTAINER "Zak Henry" <zak.henry@gmail.com> | ||
|
||
ADD . /data |
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,40 @@ | ||
server { | ||
client_max_body_size 20M; | ||
listen 8081; | ||
|
||
# rewrite ^/forum(/.*)$ http://%HOSTNAME_FORUM%$1 permanent; | ||
|
||
|
||
access_log /var/log/nginx/access-app.log; | ||
error_log /var/log/nginx/error-app.log warn; | ||
|
||
# allow the source files to be read by the browser for sourcemapping | ||
location /data/src { | ||
root /; | ||
try_files $uri $uri/ =404; | ||
} | ||
|
||
location /data/bower_components { | ||
root /; | ||
try_files $uri $uri/ =404; | ||
} | ||
|
||
location / { | ||
root /data/build; | ||
index index.html; | ||
try_files $uri $uri/ /index.html =404; | ||
} | ||
|
||
# location /auth/social/ { | ||
# proxy_pass http://127.0.0.1:8080/auth/social/; | ||
# proxy_set_header Host $host; | ||
# proxy_set_header X-Real-IP $remote_addr; | ||
# proxy_set_header X-Forwarded-for $remote_addr; | ||
# port_in_redirect off; | ||
# proxy_connect_timeout 300; | ||
# } | ||
|
||
location ~ /\.ht { | ||
deny all; | ||
} | ||
} |
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 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