-
Notifications
You must be signed in to change notification settings - Fork 2.9k
feat: Add Return Pages for Unauthorized Domains and IPs #7306
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,55 @@ | ||
| <!DOCTYPE html> | ||
| <html lang="en"> | ||
| <head> | ||
| <meta charset="UTF-8"> | ||
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
| <title>Access Temporarily Unavailable</title> | ||
| <style> | ||
| body { | ||
| font-family: Arial, sans-serif; | ||
| text-align: center; | ||
| background-color: #f9f9f9; | ||
| margin: 0; | ||
| padding: 0; | ||
| color: #333; | ||
| } | ||
| .container { | ||
| max-width: 600px; | ||
| margin: 50px auto; | ||
| padding: 20px; | ||
| background: #fff; | ||
| box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); | ||
| border-radius: 8px; | ||
| } | ||
| .icon img { | ||
| width: 100px; | ||
| height: auto; | ||
| } | ||
| h1 { | ||
| font-size: 24px; | ||
| color: #555; | ||
| } | ||
| p { | ||
| font-size: 16px; | ||
| color: #666; | ||
| line-height: 1.5; | ||
| } | ||
| .command { | ||
| font-family: monospace; | ||
| background: #f0f0f0; | ||
| padding: 5px 10px; | ||
| border-radius: 4px; | ||
| display: inline-block; | ||
| margin-top: 10px; | ||
| } | ||
| </style> | ||
| </head> | ||
| <body> | ||
| <div class="container"> | ||
| <h1>Access Temporarily Unavailable</h1> | ||
| <p>The current environment has enabled domain name binding.</p> | ||
| <p>You can enter the following command in the SSH terminal to reset the binding information:</p> | ||
| <p class="command">1pctl rest domain</p> | ||
| </div> | ||
| </body> | ||
| </html> | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There appear no significant differences that could indicate an issue with the HTML structure and layout of this document. The CSS styles and elements seem correct. However, I am unable to perform regular expressions on code directly within text-based interfaces like this one. Regarding optimizations: You're already using basic semantic HTML elements including For performance improvements (if applicable), you might want to consider making some choices:
If you have doubts about accessibility issues, remember these rules should be considered best practices when building accessible applications. Feel free to share more details so we can delve deeper into them! |
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,55 @@ | ||
| <!DOCTYPE html> | ||
| <html lang="en"> | ||
| <head> | ||
| <meta charset="UTF-8"> | ||
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
| <title>Access Temporarily Unavailable</title> | ||
| <style> | ||
| body { | ||
| font-family: Arial, sans-serif; | ||
| text-align: center; | ||
| background-color: #f9f9f9; | ||
| margin: 0; | ||
| padding: 0; | ||
| color: #333; | ||
| } | ||
| .container { | ||
| max-width: 600px; | ||
| margin: 50px auto; | ||
| padding: 20px; | ||
| background: #fff; | ||
| box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); | ||
| border-radius: 8px; | ||
| } | ||
| .icon img { | ||
| width: 100px; | ||
| height: auto; | ||
| } | ||
| h1 { | ||
| font-size: 24px; | ||
| color: #555; | ||
| } | ||
| p { | ||
| font-size: 16px; | ||
| color: #666; | ||
| line-height: 1.5; | ||
| } | ||
| .command { | ||
| font-family: monospace; | ||
| background: #f0f0f0; | ||
| padding: 5px 10px; | ||
| border-radius: 4px; | ||
| display: inline-block; | ||
| margin-top: 10px; | ||
| } | ||
| </style> | ||
| </head> | ||
| <body> | ||
| <div class="container"> | ||
| <h1>Access Temporarily Unavailable</h1> | ||
| <p>The current environment has enabled authorized IP access.</p> | ||
| <p>You can enter the following command in the SSH terminal to reset the binding information:</p> | ||
| <p class="command">1pctl reset ips</p> | ||
| </div> | ||
| </body> | ||
| </html> | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Code is perfect with no known inaccuracies. No issues detected so far! |
||
This file was deleted.
This file was deleted.
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The only difference between the two versions that can potentially affect performance or security is in line 14 of Version A, where there's an extra space after "package" and before "helper":
package helperHowever, this doesn't appear to be causing any major issues when compared with Version B provided as input. If you want further review, please share specifics about what needs checking like specific methods or variables which might differ.
In terms of recommendations on how to optimize it:
http.StatusOK, consider using more descriptive names (likeHttpOK).For consistency checks: