Debian Codegraph @

docs/usage/srv.md

raw
1 a2d offers server settings and advanced options for users who want to customize
2 their server. Make changes cautiously. You can use a2d with its default settings
3 for local access. If you want to access a2d from outside your network, you can
4 do so by making careful adjustments to your router's firewall settings.
5
6 ### Server Page Overview
7
8 - **Navigation Bar:** Convenient links and icons for easy navigation are
9 available, allowing you to access sections like Dashboard, Mode (Light, Dark,
10 and Auto), Options, and Logout. The Options section includes Server
11 Configuration, Self-Signed SSL, CA Signed SSL, Change PIN, Reset Portal,
12 Logout, and Information.
13
14 - **Server Status:** Provides essential information, including the start time of
15 Nginx and Gunicorn, Listen Port, Server Name, SSL Status, and SSL Certificate
16 details such as Common Name (CN), Organization Name (O), and Expiry Date.
17
18 - **Network Health:** Displays the Round Trip Time (RTT) to APRS and DAPNET
19 servers, indicating the speed at which data can transfer between your system
20 and their servers.
21
22 ### Server Configuration (Only if nginx & certbot installed)
23
24 The server configuration allows you to modify a2d's default server settings.
25 a2d's default settings include Listen Port: 9331, Server Name: _, and SSL
26 disabled.
27
28 These settings have the potential to override your existing NGINX configuration,
29 particularly if NGINX is configured for another application. If you are using
30 NGINX for another application, it is strongly recommended to manually configure
31 NGINX for a2d.
32
33 #### Desired Listen Port:
34 You can choose the port number for a2d access. For standard HTTP, it's port 80,
35 and for HTTPS, it's 443. Alternatively, you can select any other open port on
36 your system. After changing the port, you'll need to access a2d using the
37 specified port.
38
39 #### Desired Server Name:
40 You can set the server name to match your desired domain name. Ensure that the
41 server name corresponds to your domain name, especially if you've enabled SSL,
42 as it should match the Common Name (CN) in the SSL certificate.
43
44 #### Choosing SSL Certificates:
45 a2d offers the option to create and use either Self-Signed SSL or Certificate
46 Authority (CA) SSL certificates for your convenience. The difference between
47 them is the appearance of a green lock symbol in the browser when you access
48 them. Ensure that your server name matches the CN in your certificate before
49 making a choice. Before selecting an SSL option, you need to create the
50 certificates.
51
52 #### Creating Self-Signed SSL Certificate:
53 In a2d, you can create and store one self-signed SSL certificate. There's no
54 limit to how many times you can create it. You can generate it through the "Self
55 Signed SSL" link in the navigation bar or by clicking the green "Self Signed
56 SSL" button inside Server Configuration. Self-Signed SSL certificates are not
57 verified, so you'll encounter an SSL security warning when accessing a2d in a
58 web browser. You'll need to bypass this warning to access a2d once Self-Signed
59 SSL is enabled. Once you enabled SSL certificate access a2d through HTTPS.
60
61 #### Creating CA SSL Certificate:
62 a2d offers the option to create CA SSL certificates directly through certbot and
63 Let's Encrypt within the a2d portal. You can create them via the "CA Signed SSL"
64 link in the navigation bar or by clicking the green "CA Signed SSL" button
65 inside Server Configuration. You can generate as many CA Signed SSL certificates
66 as needed. Ensure that the Common Name (CN) matches your domain name. Once
67 you've created your desired SSL certificate, you can return to Server
68 Configuration to set it for a2d. After certificate creation, a2d uses certbot
69 for auto-renewal. If you no longer need CA SSL certificates, a2d provides an
70 option to delete them by clicking "Delete CA SSL" in the CA Signed SSL and
71 selecting the certificate to remove.
72
73 Please note that Let's Encrypt has a limit on duplicate certificates. For more
74 details, refer to [Let's Encrypt's
75 documentation](https://letsencrypt.org/docs/duplicate-certificate-limit/).
76
77 #### Firewall Settings:
78 Understanding your firewall settings is crucial. Carefully open the necessary
79 ports on your router to achieve the following:
80 1. Access a2d from outside your network.
81 2. Generate CA SSL certificates. Let's Encrypt will use ports 80 and 443 to
82 validate your server before issuing the certificate. If you have both IPv4
83 and IPv6, it's strongly recommended to open required ports for both IPv4 and
84 IPv6. After generating certificates you can safely close them and leave 443
85 open if you want remove access to a2d outside of your network.
86
87 In case you are unable to open the ports for some reason and cannot generate
88 Let's Encrypt certificates using the a2d portal, you can perform these tasks via
89 the command line and adjust your DNS settings on your provider's website. For
90 certbot user guide, visit the [Certbot user
91 guide](https://eff-certbot.readthedocs.io/en/stable/using.html).
92
93 ### Resetting a2d portal
94
95 a2d provides a Reset Portal option that allows you to reset the portal and
96 delete SSL certificates, if desired. You need to enter correct passphrase to
97 reset the portal. You can choose to retain the SSL certificates during the
98 factory reset. The Reset Portal option is available in the server page's
99 options. This action will delete all user files, configurations, and data. If
100 you are accessing a2d via SSL during the reset, the server settings will revert
101 to the default a2d settings, and you will need to access a2d through HTTP port
102 9331 after the reset.