Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Pass Checker
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tetras-libre
Pass Checker
Commits
4c2445f1
Unverified
Commit
4c2445f1
authored
8 years ago
by
David Beniamine
Browse files
Options
Downloads
Patches
Plain Diff
Set webserver root
parent
99749ffc
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
passchecker/commands/web.py
+4
-1
4 additions, 1 deletion
passchecker/commands/web.py
with
4 additions
and
1 deletion
passchecker/commands/web.py
+
4
−
1
View file @
4c2445f1
...
...
@@ -16,12 +16,15 @@
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
import
os
import
pkg_resources
from
http.server
import
HTTPServer
from
http.server
import
CGIHTTPRequestHandler
from
.passcheckerdefaults
import
PASS_CHECKER_DEFAULTS
def
server
(
address
=
PASS_CHECKER_DEFAULTS
[
'
address
'
],
port
=
PASS_CHECKER_DEFAULTS
[
'
port
'
]):
os
.
chdir
(
os
.
path
.
dirname
(
__file__
)
+
"
/../
"
)
server_address
=
(
address
,
port
)
server
=
HTTPServer
handler
=
CGIHTTPRequestHandler
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment