Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vcst-2465 #2872

Merged
merged 5 commits into from
Jan 13, 2025
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions azureDeployPlatformAndFrontend.json
Original file line number Diff line number Diff line change
Expand Up @@ -547,6 +547,28 @@
"reroute": false
}
}
},
{
"ruleSequence": 90,
"conditions": [],
"name": "CORS",
"actionSet": {
"requestHeaderConfigurations": [],
"responseHeaderConfigurations": [
{
"headerName": "Cross-Origin-Embedder-Policy",
"headerValue": "credentialless"
},
{
"headerName": "Cross-Origin-Resource-Policy",
"headerValue": "cross-origin"
},
{
"headerName": "Content-Security-Policy",
"headerValue": "[concat('frame-ancestors ''self'' https://', parameters('appServiceName'), '.azurewebsites.net;')]"
}
]
}
}
]
}
Expand Down
8 changes: 7 additions & 1 deletion azureDeployPlatformAndFrontend.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,15 @@ The Azure deployment process consists of the following steps:

1. Create all Azure resources using the Azure button.
2. Set up the initial configuration for the platform application (install sample data if necessary; set a new password for the Admin user).
3. Add a store URL (`Stores > B2B-store > Store URL`) pointing to the Azure Application Gateway IP address in the form of `http://x.x.x.x/`.
2 Optional. If you want to use the Page builder functionality, the front-end application should use the https protocol. To set this up:
a. add an https listener to the Application gateway
go to Settings -> Listeners -> Add listener -> Fill in `Listener name` and `Cert name`, set `Protocol` to `HTTPS` and `Port` to `443`. Select .pfx file in `PFX certificate file` and enter the password for the certificate.
b. change a listener for routing rule
go to Settings -> Rules -> <routning rule> -> set listener to `https`
3. Add a store URL (`Stores > B2B-store > Store URL`) pointing to the Azure Application Gateway IP address in the form of `http://x.x.x.x/` (in case of using https, use form `https://<hostname-from-certificate>/`).
4. Use the Azure Application Gateway IP address to access the front-end part of the Virtocommerce solution.


## References
* [Deploy to Azure Documentation](https://docs.virtocommerce.org/storefront/developer-guide/deployment/#deployment-on-azure)
* [Virto Commerce Frontend Architecture](https://docs.virtocommerce.org/platform/developer-guide/architecture/)
Expand Down
Loading