Skip to content

Commit 70a443d

Browse files
author
Linus Lee
committed
Add real configuration files
1 parent 7b6d1b3 commit 70a443d

File tree

2 files changed

+68
-0
lines changed

2 files changed

+68
-0
lines changed

conf/nginx.conf

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
server {
2+
server_name fortress.thesephist.com;
3+
4+
listen 80 default_server;
5+
listen [::]:80 default_server;
6+
7+
root /var/www/html;
8+
index index.html;
9+
try_files $uri $uri/ =404;
10+
11+
location /.well-known/ {
12+
try_files $uri $uri/ =404;
13+
}
14+
location / {
15+
proxy_pass http://127.0.0.1:7280;
16+
proxy_http_version 1.1;
17+
proxy_set_header Host $host;
18+
}
19+
20+
listen [::]:443 ssl ipv6only=on; # managed by Certbot
21+
listen 443 ssl; # managed by Certbot
22+
ssl_certificate /etc/letsencrypt/live/fortress.thesephist.com/fullchain.pem; # managed by Certbot
23+
ssl_certificate_key /etc/letsencrypt/live/fortress.thesephist.com/privkey.pem; # managed by Certbot
24+
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
25+
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
26+
27+
if ($scheme != "https") {
28+
return 301 https://$host$request_uri;
29+
}
30+
}

conf/sshd_config

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# $OpenBSD: sshd_config,v 1.101 2017/03/14 07:19:07 djm Exp $
2+
3+
#Port 22
4+
#AddressFamily any
5+
#ListenAddress 0.0.0.0
6+
#ListenAddress ::
7+
8+
# Ciphers and keying
9+
#RekeyLimit default none
10+
11+
# Logging
12+
#SyslogFacility AUTH
13+
#LogLevel INFO
14+
15+
# Authentication:
16+
PermitRootLogin no
17+
MaxAuthTries 5
18+
MaxSessions 10
19+
#PubkeyAuthentication yes
20+
UsePAM yes
21+
22+
# To disable tunneled clear text passwords, change to no here!
23+
PasswordAuthentication yes
24+
#PermitEmptyPasswords no
25+
26+
# Change to yes to enable challenge-response passwords (beware issues with
27+
# some PAM modules and threads)
28+
ChallengeResponseAuthentication no
29+
30+
X11Forwarding yes
31+
PrintMotd no
32+
#PrintLastLog yes
33+
#TCPKeepAlive yes
34+
35+
# Allow client to pass locale environment variables
36+
AcceptEnv LANG LC_*
37+
# override default of no subsystems
38+
Subsystem sftp /usr/lib/openssh/sftp-server

0 commit comments

Comments
 (0)