-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add custom pages for 502 Bad Gateway pages (#7188)
* Add custom pages for 502 Bad Gateway pages This makes it easier for inexperienced developers to know what they didn't start when they get an error. * Fix port number typo
- Loading branch information
Showing
4 changed files
with
47 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Your local Altinn app is not running</title> | ||
</head> | ||
<body> | ||
<h1>502 Bad Gateway</h1> | ||
<h2>Your local APP is not running on port 5005</h2> | ||
<p>Please ensure that your app is running on port 5005</p> | ||
<pre> | ||
> dotnet run --project App/App.csproj | ||
</pre> | ||
</body> | ||
</html> |
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,18 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Localtest is not running</title> | ||
</head> | ||
<body> | ||
<h1>502 Bad Gateway</h1> | ||
<h2>Localtest is not running</h2> | ||
<p>Please ensure that LocalTest is running on port 5101</p> | ||
<pre> | ||
> cd src/development/LocalTest | ||
> dotnet run | ||
</pre> | ||
</body> | ||
</html> |
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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
FROM nginx:1.21.3-alpine | ||
|
||
COPY nginx.conf /etc/nginx/nginx.conf | ||
|
||
COPY *.html /www/ |
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