{"id":26020984,"url":"https://github.com/lrusso/webserver","last_synced_at":"2026-04-20T11:03:54.939Z","repository":{"id":219481385,"uuid":"749158734","full_name":"lrusso/WebServer","owner":"lrusso","description":"Simple Node.js Web server with SSL support","archived":false,"fork":false,"pushed_at":"2024-07-12T02:36:33.000Z","size":88,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-07-13T03:46:41.408Z","etag":null,"topics":["js","node","server","simple","ssl","web"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lrusso.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-01-27T18:47:31.000Z","updated_at":"2024-07-12T02:36:36.000Z","dependencies_parsed_at":"2024-02-04T04:24:58.312Z","dependency_job_id":"e3cbbca3-540c-41fc-82a3-56c99cea294d","html_url":"https://github.com/lrusso/WebServer","commit_stats":null,"previous_names":["lrusso/simple-nodejs-webserver"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lrusso%2FWebServer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lrusso%2FWebServer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lrusso%2FWebServer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lrusso%2FWebServer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lrusso","download_url":"https://codeload.github.com/lrusso/WebServer/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242177086,"owners_count":20084705,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["js","node","server","simple","ssl","web"],"created_at":"2025-03-06T08:32:48.535Z","updated_at":"2026-04-20T11:03:54.934Z","avatar_url":"https://github.com/lrusso.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Simple Node.js Web Server\n\nSimple Node.js Web server with SSL support.\n\n## Running the Web server\n\n* Standard ports: ```node server.js```\n* Customs ports: ```node server.js 8080 4430```\n\n## Workaround for browsing to localhost using SSL\n\n1. Run ```node server.js```\n2. Open Chrome and browse to ```https://localhost```\n3. Click on ```ADVANCED```\n4. Click on ```Proceed to localhost (unsafe)```\n\nThis workaround is useful for testing purposes because, for example, a Web App may require access to the webcam and that is not allowed using a non-secure connection.\n\n## Running the Web server in the background\n\n1. Install Forever: ```npm install -g forever```\n2. Start the server: ```forever start -a -l /dev/null -c node server.js \u003e /dev/null 2\u003e\u00261```\n3. Stop the server: ```forever stop -a -l /dev/null -c node server.js \u003e /dev/null 2\u003e\u00261```\n\n## How to launch the server on startup (macOS)\n\n- Run `nano ~/Library/LaunchAgents/com.lrusso.server.plist`\n- Assuming that you have the server folder path in `/Users/lrusso/Server`, paste the following code:\n\n```xml\n\u003c?xml version=\"1.0\" encoding=\"UTF-8\"?\u003e\n\u003c!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\"\u003e\n\u003cplist version=\"1.0\"\u003e\n\u003cdict\u003e\n    \u003ckey\u003eLabel\u003c/key\u003e\n    \u003cstring\u003ecom.lrusso.server\u003c/string\u003e\n\n    \u003ckey\u003eProgramArguments\u003c/key\u003e\n    \u003carray\u003e\n        \u003cstring\u003e/usr/local/bin/node\u003c/string\u003e\n        \u003cstring\u003e/Users/lrusso/Server/server.js\u003c/string\u003e\n    \u003c/array\u003e\n\n    \u003ckey\u003eWorkingDirectory\u003c/key\u003e\n    \u003cstring\u003e/Users/lrusso/Server\u003c/string\u003e\n\n    \u003ckey\u003eEnvironmentVariables\u003c/key\u003e\n    \u003cdict\u003e\n        \u003ckey\u003ePATH\u003c/key\u003e\n        \u003cstring\u003e/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/homebrew/bin\u003c/string\u003e\n    \u003c/dict\u003e\n\n    \u003ckey\u003eRunAtLoad\u003c/key\u003e\n    \u003ctrue/\u003e\n\n    \u003ckey\u003eKeepAlive\u003c/key\u003e\n    \u003ctrue/\u003e\n\n    \u003ckey\u003eStandardErrorPath\u003c/key\u003e\n    \u003cstring\u003e/dev/null\u003c/string\u003e\n    \u003ckey\u003eStandardOutPath\u003c/key\u003e\n    \u003cstring\u003e/dev/null\u003c/string\u003e\n\u003c/dict\u003e\n\u003c/plist\u003e\n```\n\n- Run `chmod 644 ~/Library/LaunchAgents/com.lrusso.server.plist`\n- Run `launchctl load ~/Library/LaunchAgents/com.lrusso.server.plist`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flrusso%2Fwebserver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flrusso%2Fwebserver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flrusso%2Fwebserver/lists"}