Info Security Memo
  • Blog
  • Sitemap
    • Categories
  • Contact
  • About
  • Resources
  • Tools
  • 51sec.org

Build Confidence

Focusing on Information Security 

Info Security Notes

Deploy Discovery Navigation into Github Page

10/19/2022

0 Comments

 
Deploy Discovery Navigation into Github Page

Discovery Navigation is a Internet bookmark collection, administration and navigation project in Github. It supports to deploy to free Github page or free Vercel site. It also provides some unique features which other similar projects does not have. This post is going to show you the deployment process step by step using Github Page as an example. Other methods can be found from Github repository description.



Discovery Navigation

Related posts:
  • Deploy Discovery Navigation into Github Page
  • Create Your Own Bookmarks Navigation Website based Github WebStack-Laravel Project
  • Create Your Own Bookmark Navigation Website Using Onenav Docker

Demo: https://nav.51sec.org (Old version)
or https://link.51sec.org (New version)

Introduction


Discovery Navigation: 
  • A purely static, powerful navigation website that supports SEO and online editing,
  • Built-in collection of up to 800+ high-quality websites to help you work, study and live
  • support multiple themes: Demo sites:
    • Sim online preview
    • Light online preview
    • Side online preview
    • App online preview
  • Features:
    • Built-in 800+utility sites.
    • Support SEO.
    • It is completely static and provides automatic deployment functions.
    • The trigeminal tree has a clear structure and clear classification.
    • Support one website to associate multiple URLs
    • The coexistence of beauty and simplicity is no longer the era of killing Matt.
    • Completely open source, easy to customize.
    • Support multiple browsing modes and innovation.
    • Support footprint memory.
    • Support mobile browsing.
    • Support search query.
    • Support custom engine search.
    • A variety of theme switching.
    • Support dark mode.
    • Support background management, no need to deploy.
    • Support import from Chrome bookmarks
The newer version already support English and Chinese language and also has a new backend system portal. 

Fork the current project


Original Github Repository: https://github.com/xjh22222228/nav

My Github Repository: https://github.com/51sec/nav, which has a translation to Enligh based on an old version which was not have english at that time. It is still working fine but missing the new backend system management portal. 







Apply token

Go to https://github.com/settings/tokens apply for a token, check the corresponding permissions, if you don’t understand, select all, copy and save the token.





Add application token

https://github.com/username/nav/settings/secrets/actions/ new add application token, name fill in TOKENuppercase.





Enable Actions


Open https://github.com/username/nav/actions and clickGreen Button






Modify Configuration File

Be sure to modify the project configuration file nav.config.ts, especially the gitRepoUrl. You will have to change the default value to your own github repository url. 

Other settings can be left as default. In the latest release from https://github.com/xjh22222228/nav, most of options can be changed from backend system portal. 

import { IConfig } from './src/types'

const c: IConfig = {
  // [Mondatory], Please replace following Github url with your own Github address which you forked in. 
  gitRepoUrl: 'https://github.com/51sec/nav',

  // Deployment branch name
  branch: 'main',

  // If routing is hash mode. if it deployed into github pages or using Vercel, it has to be set to true
  hashMode: true,

  // is it displaying the Github icon on top right corner of the web page
  showGithub: true,

  // what is your website address. It is good for your SEO
  homeUrl: 'https://nav3.cn',

  // Web Site Tiltle
  title: 'Discovery Navigation - Featured and useful navigation websites',

  // Web Site description
  description: 'Discovery Navigation - Featured and useful navigation websites - English',

  // Web Site Keyword
  keywords: 'Navigation, front-end resources, community sites, designers, practical tools, learning resources, operations, network security, node.js',

  // Default Theme: Light | Sim | Side | App | Shortcut
  theme: 'Light',

  // The content at the bottom of the website, copyright information, record number, can be HTML
  footerContent: `
    <div style="font-weight: bold;">Total collected \${total} websites </div>
    <div>Copyright © 2018-2021 nav3.cn, Translated by 51sec.org. All Rights Reserved</div>
  `,

  // Alibaba icon https://www.iconfont.cn/
  // IT will be used to show side theme's topic one level and second level menu icons Side 主题一级、二级菜单图标展示
  iconfontUrl: '//at.alicdn.com/t/font_2522843_wl70o31sy6.js',

  // Baidu statistics
  // https://tongji.baidu.com/web/welcome/login
  //baiduStatisticsUrl: 'https://hm.baidu.com/hm.js?4582be7af7e7c95ef75351e07c6c32ba',

  // CNZZ statisitics
  // https://www.cnzz.com/o_index.php
  cnzzStatisticsUrl: '',

  // Sim Theme Configuration
  simThemeConfig: {
    // Post Image
    posterImageUrls: [
      'https://raw.sevencdn.com/xjh22222228/nav/image/sim-wallpaper.jpg'
    ],
    description: 'Here collected total <b>${total}</b> websites, helping your work, life and studying'
  }
}

export default c


Test

After 5 minutes, open https://51sec.github.io/nav and you will see a very powerful navigation website.


Old Backend: admin

Old version will have + icon to directly get into backend admin portal. For new version, it gets rid of this +icon, you will have to modify the URL address to system, such as: https://nav.51sec.org/#/light Change to https://nav.51sec.org/#/system. Old admin portal is still working on this url:  https://nav.51sec.org/#/admin 


New BackEnd: System



Everytime, there is a change saved, it will take Github actions 5 minutes to complete all tasks. Please be patient before you save another change. 

If Github system is busy in completing previous tasks. you might got following error message:

Error: Request failed with status code 409.



CNAME Settings on Cloudflare






Option: Reverse Proxy Settings on Nginx




# nginx

server {
    listen       80;
    server_name  nav.51sec.org;

    location / {
        proxy_pass https://51sec.github.io/nav/;
    }
}:


ghp_ayqmYrPEKw8eDCbXwt0MEK4PwFituma35j6wF1
ghp_QqM3D6IdNkhx9v4Yxxe7DD1HHUwbM0L4YXyl42



References

  • https://github.com/xjh22222228/nav
  • nav.51sec.org
  • https://github.com/WebStackPage/WebStackPage.github.io





via Blogger http://blog.51sec.org/2021/06/deploy-discovery-navigation-into-github.html
October 19, 2022 at 03:09PM Cloud
0 Comments



Leave a Reply.

    Categories

    All
    Architecture
    Blog
    Checkpoint
    Cisco
    Cloud
    CyberArk
    F5
    Fortigate
    Guardium
    Juniper
    Linux
    Network
    Others
    Palo Alto
    Qualys
    Raspberry Pi
    Security
    SIEM
    Software
    Vmware
    VPN
    Wireless

    Archives

    March 2024
    February 2024
    January 2024
    December 2023
    November 2023
    October 2023
    September 2023
    August 2023
    July 2023
    June 2023
    May 2023
    April 2023
    March 2023
    February 2023
    January 2023
    December 2022
    November 2022
    October 2022
    September 2022
    August 2022
    July 2022
    June 2022
    May 2022
    April 2022
    March 2022
    February 2022
    January 2022
    December 2021
    November 2021
    October 2021
    September 2021
    August 2021
    July 2021
    June 2021
    May 2021
    April 2021
    March 2021
    February 2021
    January 2021
    December 2020
    November 2020
    October 2020
    September 2020
    August 2020
    July 2020
    October 2019
    September 2019
    June 2019
    July 2018
    May 2018
    December 2017
    August 2017
    April 2017
    March 2017
    January 2017
    December 2016
    November 2016
    October 2016
    September 2016
    August 2016
    July 2016
    June 2016
    May 2016
    April 2016
    March 2016
    February 2016
    January 2016
    December 2015
    November 2015
    October 2015
    September 2015
    August 2015
    July 2015
    June 2015
    May 2015
    April 2015
    March 2015

    Print Page:

    RSS Feed

    Email Subscribe
Powered by Create your own unique website with customizable templates.
  • Blog
  • Sitemap
    • Categories
  • Contact
  • About
  • Resources
  • Tools
  • 51sec.org