From 67ba1da62dedc57c69da8733df723f876da4dbd0 Mon Sep 17 00:00:00 2001 From: Alireza Ghaderi Date: Thu, 25 Apr 2024 07:20:22 +0000 Subject: [PATCH] Update v08_doc_server.html --- docs/v08_doc_server.html | 69 +++++++--------------------------------- 1 file changed, 12 insertions(+), 57 deletions(-) diff --git a/docs/v08_doc_server.html b/docs/v08_doc_server.html index 650e2da7..156344fe 100644 --- a/docs/v08_doc_server.html +++ b/docs/v08_doc_server.html @@ -169,7 +169,7 @@

Pointing a Domain or Subdomain (Optional)

  • Click 'Save.'
  • -

    Note on Security and Accessibility: It is advisable to use a reverse proxy, such as Nginx or Caddy, to manage and secure access to your server's various services like the dashboard and Portainer. A reverse proxy can help you configure SSL certificates for these subdomains, ensuring encrypted and secure communication. This setup not only enhances security but also improves access management, allowing you to point several subdomains to different services seamlessly.

    +

    Note on Security and Accessibility: It is advisable to use a reverse proxy, such as Nginx or Caddy web servers, to manage and secure access to your server's various services like the dashboard and Portainer. A reverse proxy can help you configure SSL certificates for these subdomains, ensuring encrypted and secure communication. This setup not only enhances security but also improves access management, allowing you to point several subdomains to different services seamlessly.

    For detailed guides on setting up a reverse proxy with SSL certificates, please refer to:

    -

    Tip: If you prefer, you can also continue to use the IP address of the server or Reverse DNS URLs.

    +

    Tip: If you prefer, you can also continue to use the IP address of the server or your main domain and port number or Reverse DNS URLs.

    Server Configuration: Basic Setup

    @@ -247,64 +247,19 @@
    Image Features and Components

    Customizing the Docker Image (Optional)

    -

    If you are familiar with docker and git workflow and wish to customize the Docker image to suit specific project needs or to test new features, follow this detailed guide. These steps allow you to modify the image, including using a different repository or branch for the MAVSDK_Drone_Show project and integrating other software components like MAVSDK_Server.

    +

    If you are experienced with Docker and Git and wish to customize the Docker image for specific project needs or to test new features, here's a brief guide:

    -
      -
    1. Create a Docker Container: Start by creating a new container from the existing drone template image. This container will serve as your working environment for all modifications.
    2. -
    - -
    
    -sudo docker run -it --name updated_drone_template drone-template-1 /bin/bash
    -
    - -

    This command runs the container in interactive mode and opens a bash shell for you.

    - -
      -
    1. Access the Container's Bash Terminal: If you exit the container's terminal, you can re-enter it using:
    2. -
    - -
    
    -sudo docker start -ai updated_drone_template
    -
    - -
      -
    1. Fork and Clone Your Repository: Fork the mavsdk_drone_show repository on GitHub to create a personal copy. Then, clone your fork inside the container. This allows you to push changes to your repository without affecting the official version.
    2. -
    - -
    
    -git clone https://github.com/yourusername/mavsdk_drone_show.git
    -cd mavsdk_drone_show
    -
    - -
      -
    1. Switch Branches or Create New Ones: If you need to work on a specific branch or create a new one for your tests and developments, do it as follows:
    2. -
    - -
    
    -git checkout -b new-feature
    -
    - -

    This command creates and switches to a new branch named 'new-feature'.

    - -
      -
    1. Integrate Additional Components: If your project requires the MAVSDK_Server binary or other dependencies not included in the base image, download and configure them as needed.
    2. -
    -
    
    -https://github.com/mavlink/MAVSDK/releases/
    -
    - -
      -
    1. Commit Changes to a New Docker Image: Once all modifications are complete, commit these changes to create a new Docker image. This preserves your custom environment for future use or distribution.
    2. -
    - -
    
    -sudo docker commit updated_drone_template custom_drone_template:latest
    -
    - -

    This command saves all your customizations into a new Docker image named 'custom_drone_template' with the 'latest' tag.

    + -

    With these steps, you have a fully customized Docker image ready for deploying drone simulations with your configurations and enhancements. This image can now be used to launch new drone instances tailored to your specific project needs.

    +

    This approach ensures you have a Docker image customized to your requirements, ready for deploying drone simulations or other related applications. Utilize your expertise in Docker and Git to manage and implement these changes efficiently.

    +

    Portainer Installation (Optional but Highly Recommended)

    Portainer is an open-source management tool that provides a graphical user interface (GUI) to facilitate the management and monitoring of Docker environments. It simplifies the deployment, troubleshooting, and overall control of Docker containers, including those used for drone simulations.