Skip to content

Commit 2a5ec41

Browse files
committed
Create linkace.subdomain.conf.sample
1 parent ac729c4 commit 2a5ec41

1 file changed

Lines changed: 62 additions & 0 deletions

File tree

linkace.subdomain.conf.sample

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
## Version 2023/09/29
2+
# make sure that your linkace container is named linkace
3+
# make sure that your dns has a cname set for linkace
4+
# use linkace:simple package with included proxy
5+
6+
server {
7+
listen 443 ssl http2;
8+
listen [::]:443 ssl http2;
9+
10+
server_name linkace.*;
11+
12+
# enable to indicate to search engines to not index this site
13+
# add_header X-Robots-Tag "noindex, nofollow, nosnippet, noarchive";
14+
15+
# Content security headers for Laravel
16+
add_header X-Frame-Options "SAMEORIGIN";
17+
add_header X-XSS-Protection "1; mode=block";
18+
add_header X-Content-Type-Options "nosniff";
19+
20+
proxy_set_header X-Forwarded-For $remote_addr;
21+
proxy_set_header X-Forwarded-Proto $scheme;
22+
proxy_set_header Host $host;
23+
24+
25+
include /config/nginx/ssl.conf;
26+
27+
client_max_body_size 0;
28+
29+
# enable for ldap auth (requires ldap-location.conf in the location block)
30+
#include /config/nginx/ldap-server.conf;
31+
32+
# enable for Authelia (requires authelia-location.conf in the location block)
33+
#include /config/nginx/authelia-server.conf;
34+
35+
# enable for Authentik (requires authentik-location.conf in the location block)
36+
#include /config/nginx/authentik-server.conf;
37+
38+
location / {
39+
# enable the next two lines for http auth
40+
#auth_basic "Restricted";
41+
#auth_basic_user_file /config/nginx/.htpasswd;
42+
43+
# enable for ldap auth (requires ldap-server.conf in the server block)
44+
#include /config/nginx/ldap-location.conf;
45+
46+
# enable for Authelia (requires authelia-server.conf in the server block)
47+
#include /config/nginx/authelia-location.conf;
48+
49+
# enable for Authentik (requires authentik-server.conf in the server block)
50+
#include /config/nginx/authentik-location.conf;
51+
52+
include /config/nginx/proxy.conf;
53+
include /config/nginx/resolver.conf;
54+
set $upstream_app linkace;
55+
set $upstream_port 80;
56+
set $upstream_proto http;
57+
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
58+
59+
}
60+
61+
62+
}

0 commit comments

Comments
 (0)