Skip to content

Commit 3ba1de6

Browse files
author
Rafael Grigorian
committed
Fixed #51
1 parent 29efcba commit 3ba1de6

File tree

2 files changed

+15
-11
lines changed

2 files changed

+15
-11
lines changed

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ nuke: clean ## Remove generated & deployment data
3737
shell: ## Attach a shell to deploy container
3838
docker-compose -f public_html/docker-compose.yml run deploy bash
3939

40+
restart-varnish: ## Restart varnish container (updated vcl file)
41+
docker-compose -f public_html/docker-compose.yml -f public_html/docker-compose.override.yml restart varnish
42+
4043
dev-create: ## Create development environment
4144
composer global config repositories.magento composer https://repo.magento.com/
4245
composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition=2.4.2 ./public_html

default.vcl

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1+
12
#
23
# >jetrails_
34
#
4-
# Config file was generated on Magento_Community@2.4.2 and JetRails_Varnish@1.1.11.
5+
# Config file was generated on Magento_Community@2.4.2 and JetRails_Varnish@2.0.0.
56
# Do not alter this VCL directly since it is subject to overwrite.
67
#
78

@@ -15,14 +16,14 @@ import std;
1516
backend default {
1617
.host = "web";
1718
.port = "8080";
18-
# .first_byte_timeout = 600s;
19-
# .probe = {
20-
# .url = "/pub/health_check.php";
21-
# .timeout = 2s;
22-
# .interval = 5s;
23-
# .window = 10;
24-
# .threshold = 5;
25-
# }
19+
# .first_byte_timeout = 600s;
20+
# .probe = {
21+
# .url = "/pub/health_check.php";
22+
# .timeout = 2s;
23+
# .interval = 5s;
24+
# .window = 10;
25+
# .threshold = 5;
26+
# }
2627
}
2728

2829
acl purge {
@@ -31,7 +32,7 @@ acl purge {
3132

3233
sub vcl_recv {
3334
if (req.method == "GET" && client.ip ~ purge && req.url == "/jetrails/varnish-config/versions") {
34-
return (synth(200, "Magento 2.4.2 / Module 1.1.11"));
35+
return (synth(200, "Magento 2.4.2 / Module 2.0.0"));
3536
}
3637
set req.http.X-Forwarded-For = req.http.CF-Connecting-IP;
3738
if (req.restarts > 0) {
@@ -144,7 +145,7 @@ sub vcl_hash {
144145
if (req.http.X-Forwarded-Proto) {
145146
hash_data(req.http.X-Forwarded-Proto);
146147
}
147-
148+
148149

149150
if (req.url ~ "/graphql") {
150151
call process_graphql_headers;

0 commit comments

Comments
 (0)