Local Linux deployment Dashy and remote access tutorial

Reprinted from the cpolar article: Deploy Dashy on local Linux and access it remotely

Introduction

Dashyis an open-source self-hosted navigation page configuration service with features like an easy-to-use visual editor, status checks, widgets and themes. You can aggregate some of your frequently used websites to form your own navigation page. A customizable and exclusive navigation page tool with super powerful functions and amazing appearance

Combined with the cpolar intranet tool, we can achieve access to Dashy from the public network without deploying to a public network server. Here we introduce the configuration method

1. Install Dashy

Pull the Dashy image in docker

docker pull lissy93/dashy:latest

After the image is downloaded, we run it and start the container in the background. The container is port 80, which is mapped to port 8080 on the host.

docker run -id --name dashy -p 8080:80 lissy93/dashy

After starting, we open the browser, enter the Linux LAN ip address plus 8080the port, and then we can see our Dashy, the installation is successful

[External link picture transfer failed, the source site may have an anti-theft link mechanism, it is recommended to save the picture and upload it directly (img-H5rhqaPd-1692017805783)(https://images.cpolar.com//img/image-20230619160646933.png) ]

2. Install cpolar

Above we installed dashy using docker in local Linux, and the local access is ok. Next, we install the cpolar intranet penetration tool. Through the http public network address of cpolar, we can easily realize remote access to dashy without registering a domain name to purchase Cloud server. The following are the steps to install cpolar

  • Install commands using one-click scripts
curl -L https://www.cpolar.com/static/downloads/install-release-cpolar.sh | sudo bash
  • Add a service to the system
sudo systemctl enable cpolar
  • Start the cpolar service
sudo systemctl start cpolar

3. Configure the public network access address

After successfully starting the cpolar service, we visit the Linux LAN ip address + port 9200 on the browser, and log in to the cpolar web UI management interface.

cpolar official website address: https://www.cpolar.com/

After successful login, click Tunnel Management on the left dashboard - Create Tunnel:

  • Tunnel name: can be customized, be careful not to duplicate the existing tunnel name
  • protocol:http
  • Local address:8080
  • Domain name type: free choice随机域名
  • Region: selectChina VIP

click创建

[External link picture transfer failed, the source site may have an anti-theft link mechanism, it is recommended to save the picture and upload it directly (img-N1yhrZpv-1692017805786)(https://images.cpolar.com//img/image-20230619163915855.png) ]

Then open the online tunnel list and check the public network address generated just after the tunnel was created. There are two access methods by default in cpolar, one is the http protocol, and the other is the https protocol

[External link picture transfer failed, the source site may have an anti-theft link mechanism, it is recommended to save the picture and upload it directly (img-M5WhIhj2-1692017805787)(https://images.cpolar.com//img/image-20230619164025847.png) ]

We choose the public network address of the above http protocol, open the browser, and after accessing, we can see the dashy interface, so that a remote access connection is set up

[External link picture transfer failed, the source site may have an anti-theft link mechanism, it is recommended to save the picture and upload it directly (img-pDZc6JQ5-1692017805797)(https://images.cpolar.com//img/image-20230619170844284.png) ]

4. Fixed domain name access

In cpolar, you need to upgrade to the basic package or above to support the configuration of fixed domain names

Log in to the background of the cpolar official website , click on the dashboard on the left 预留, find 保留二级子域名, and reserve a second-level subdomain name for the http tunnel.

  • Region: Select the server region
  • Name: Fill in the second-level subdomain name you want to keep (customizable)
  • Description: Remarks, which can be customized

[External link picture transfer failed, the source site may have an anti-theft link mechanism, it is recommended to save the picture and upload it directly (img-E7x6Nhxl-1692017805799)(https://images.cpolar.com//img/image-20230619172054931.png) ]

This example reserves a dashytestsecond-level subdomain named . After the subdomain name is successfully reserved, we copy the subdomain name, and then we need to bind its configuration to the tunnel.

[External link picture transfer failed, the source site may have an anti-theft link mechanism, it is recommended to save the picture and upload it directly (img-qoEsyJ2o-1692017805801)(https://images.cpolar.com//img/image-20230619172139639.png) ]

Log in to the cpolar web ui management interface again. 隧道管理Click —— on the left dashboard 隧道列表, find the tunnel that needs to configure the second-level subdomain name, and click on the right编辑

[External link picture transfer failed, the source site may have an anti-theft link mechanism, it is recommended to save the picture and upload it directly (img-LJkhcFN9-1692017805803)(https://images.cpolar.com//img/image-20230619172220956.png) ]

Modify the tunnel information and configure the second-level subdomain name into the tunnel:

  • Domain Type: Select instead二级子域名
  • Sub Domain: Fill in the second-level subdomain name we just reserved (in this example dashytest)

After the modification is complete, click更新

[External link picture transfer failed, the source site may have an anti-theft link mechanism, it is recommended to save the picture and upload it directly (img-XfwMBOrT-1692017805810)(https://images.cpolar.com//img/image-20230619172310287.png) ]

状态After the tunnel is successfully updated, click —— on the left dashboard 在线隧道列表, and you can see dashythe public network address of the tunnel, which has been updated to a second-level subdomain name, and copy the public network address.

[External link picture transfer failed, the source site may have an anti-theft link mechanism, it is recommended to save the picture and upload it directly (img-1G8jryY5-1692017805811)(https://images.cpolar.com//img/image-20230619172835045.png) ]

Open the browser, let's test access to the successfully configured second-level subdomain name, and the dashy interface also appears, which can be accessed normally. Now, our only private second-level subdomain name in the entire network has been created.

[External link picture transfer failed, the source site may have an anti-theft link mechanism, it is recommended to save the picture and upload it directly (img-dJ2Cpf31-1692017805813)(https://images.cpolar.com//img/image-20230619173007072.png) ]

Reprinted from the cpolar article: Deploy Dashy on local Linux and access it remotely

)]

Reprinted from the cpolar article: Deploy Dashy on local Linux and access it remotely

Guess you like

Origin blog.csdn.net/m0_59281987/article/details/132285673