Skip to content

Commit

Permalink
Merge remote-tracking branch 'refs/remotes/origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
Loudbooks committed Dec 8, 2024
2 parents d6c7c0d + 0aeae31 commit 2d23746
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,8 @@ Download `pastebook.conf` [here](https://github.com/Loudbooks/PasteBook/blob/mas
### SSL Configuration
Run the following, with `<DOMAIN>` changed to your domain.
```bash
sudo certbot --nginx -d <DOMAIN> -d api.<DOMAIN>
sudo certbot certonly --standalone -d <DOMAIN> -d api.<DOMAIN>
```

### Committing Changes
Run the following.
```bash
Expand Down
14 changes: 14 additions & 0 deletions pastebook.conf
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@ server {
listen 443 ssl;
server_name <DOMAIN>;

ssl_certificate /etc/letsencrypt/live/<DOMAIN>/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/<DOMAIN>/privkey.pem;

ssl_protocols TLSv1.2 TLSv1.3;
ssl_ciphers HIGH:!aNULL:!MD5;
ssl_prefer_server_ciphers on;

location / {
proxy_buffering off;
proxy_set_header X-Real-IP $remote_addr;
Expand All @@ -33,6 +40,13 @@ server {
listen 443 ssl;
server_name api.<DOMAIN>;

ssl_certificate /etc/letsencrypt/live/<DOMAIN>/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/<DOMAIN>/privkey.pem;

ssl_protocols TLSv1.2 TLSv1.3;
ssl_ciphers HIGH:!aNULL:!MD5;
ssl_prefer_server_ciphers on;

client_max_body_size 6M;

location / {
Expand Down

0 comments on commit 2d23746

Please sign in to comment.