Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
darthrater78 authored Jul 18, 2024
0 parents commit 16c9d50
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 0 deletions.
13 changes: 13 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# AVD URL Redirect web app


[Azure Static Web Apps](https://docs.microsoft.com/azure/static-web-apps/overview) is a service that automatically builds and deploys full stack web apps to Azure from a code repository. Use this repo with the [quickstart](https://github.com/george-markou/avdurlredirect/generate) to build and customize a new static site that will redirect http requests to the AVD service.

Here's how the AVD HTTP redirection works:

* The client queries the custom domain name avd.markou.me.
* The DNS request is resolved and the CNAME record is returned to the client.
* The client connects to the Azure Static Website.
* Azure Static Web App redirects the client to AVD public endpoint address.

![image](https://user-images.githubusercontent.com/82205061/232325641-ae6ae517-0541-4136-b306-93e1804277fc.png)
9 changes: 9 additions & 0 deletions src/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="refresh" content="0; url='https://client.wvd.microsoft.com/arm/webclient/index.html'">
</head>
<body>
<p> You are being transferred to Azure Virtual Desktop Service<a href="https://client.wvd.microsoft.com/arm/webclient/index.html"></a>.</p>
</body>
</html>
21 changes: 21 additions & 0 deletions src/styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
* {
font-family: Arial, Helvetica, sans-serif;
}

html, body {
margin: 0;
border: 0;
padding: 0;
background-color: #fff;
}

main {
margin: auto;
width: 50%;
padding: 20px;
}

main > h1 {
text-align: center;
font-size: 3.5em;
}

0 comments on commit 16c9d50

Please sign in to comment.