You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Nginx.md
+1-12Lines changed: 1 addition & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
# Nginx
2
2
Nginx is a common tool used for load balancing as well as reverse-proxying. We will be using Nginx to pass your instance to your domains as well as to add SSL to your site.
3
3
4
-
Assuming you are running a system based off of Debian, run the following command to install nginx:
4
+
Assuming you are running a Linux system based off of Debian, run the following command to install nginx:
5
5
```sh
6
6
$ sudo apt install nginx
7
7
```
@@ -65,17 +65,6 @@ http {
65
65
}
66
66
```
67
67
68
-
## SSL/TLS
69
-
After setting up Nginx, you may want to setup SSL through Nginx via Cerbot. To get Certbot, run the following command:
70
-
```sh
71
-
$ sudo apt install certbot
72
-
```
73
-
After installing Certbot run the following command to add SSL to your site:
74
-
```sh
75
-
$ certbot --nginx -d your.domain.com
76
-
```
77
-
Don't forget to replace `your.domain.com` with your actual domain.
This will require that you have followed the ProxDocs guide to install and use [Nginx](https://github.com/Degen-dev/blob/master/Nginx.md).
3
+
4
+
SSL will allow users to access your instance in a secure manner. Using Nginx and Certbot will allow you to generate and use SSL certificates for free. To install Certbot, run the following command:
5
+
```sh
6
+
$ sudo apt install certbot
7
+
```
8
+
After installing Certbot run the following command to add SSL to your site:
9
+
```sh
10
+
$ certbot --nginx -d your.domain.com
11
+
```
12
+
Don't forget to replace `your.domain.com` with your actual domain.
0 commit comments