-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from reload/proxy
Add plain proxy and NextJS proxy
- Loading branch information
Showing
3 changed files
with
48 additions
and
0 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,21 @@ | ||
# Based on https://www.nginx.com/resources/wiki/start/topics/recipes/drupal/ | ||
# and https://github.com/rpayanm/drupal/blob/master/nginx/default | ||
# and https://blog.john-pfeiffer.com/drupal-with-docker-compose-and-nginx-and-php-fpm-and-mariadb/ | ||
server { | ||
|
||
include include.d/ssl.conf; | ||
|
||
root /var/www/web; | ||
|
||
location / { | ||
proxy_pass http://${NGINX_PROXY_PASS}; | ||
} | ||
|
||
location /_next/webpack-hmr { | ||
proxy_pass http://${NGINX_PROXY_PASS}; | ||
proxy_http_version 1.1; | ||
proxy_set_header Upgrade $http_upgrade; | ||
proxy_set_header Connection "Upgrade"; | ||
proxy_set_header Host $host; | ||
} | ||
} |
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,13 @@ | ||
# Based on https://www.nginx.com/resources/wiki/start/topics/recipes/drupal/ | ||
# and https://github.com/rpayanm/drupal/blob/master/nginx/default | ||
# and https://blog.john-pfeiffer.com/drupal-with-docker-compose-and-nginx-and-php-fpm-and-mariadb/ | ||
server { | ||
|
||
include include.d/ssl.conf; | ||
|
||
root /var/www/web; | ||
|
||
location / { | ||
proxy_pass ${NGINX_PROXY_PASS}; | ||
} | ||
} |