Skip to content

Commit f9a87ed

Browse files
committed
feat: add 4get search engine sample
1 parent e972b1a commit f9a87ed

File tree

1 file changed

+61
-0
lines changed

1 file changed

+61
-0
lines changed

4get.subdomain.conf.sample

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
## Version 2025/07/18
2+
# make sure that your 4get container is named 4get
3+
# make sure that your dns has a cname set for 4get
4+
5+
server {
6+
listen 443 ssl;
7+
# listen 443 quic;
8+
listen [::]:443 ssl;
9+
# listen [::]:443 quic;
10+
11+
server_name 4get.*;
12+
13+
include /config/nginx/ssl.conf;
14+
15+
client_max_body_size 0;
16+
17+
# enable for ldap auth (requires ldap-location.conf in the location block)
18+
#include /config/nginx/ldap-server.conf;
19+
20+
# enable for Authelia (requires authelia-location.conf in the location block)
21+
#include /config/nginx/authelia-server.conf;
22+
23+
# enable for Authentik (requires authentik-location.conf in the location block)
24+
#include /config/nginx/authentik-server.conf;
25+
26+
# enable for Tinyauth (requires tinyauth-location.conf in the location block)
27+
#include /config/nginx/tinyauth-server.conf;
28+
29+
location @php {
30+
# enable the next two lines for http auth
31+
#auth_basic "Restricted";
32+
#auth_basic_user_file /config/nginx/.htpasswd;
33+
34+
# enable for ldap auth (requires ldap-server.conf in the server block)
35+
#include /config/nginx/ldap-location.conf;
36+
37+
# enable for Authelia (requires authelia-server.conf in the server block)
38+
#include /config/nginx/authelia-location.conf;
39+
40+
# enable for Authentik (requires authentik-server.conf in the server block)
41+
#include /config/nginx/authentik-location.conf;
42+
43+
# enable for Tinyauth (requires tinyauth-server.conf in the server block)
44+
#include /config/nginx/tinyauth-location.conf;
45+
46+
include /config/nginx/proxy.conf;
47+
include /config/nginx/resolver.conf;
48+
set $upstream_app 4get;
49+
set $upstream_port 80;
50+
set $upstream_proto http;
51+
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
52+
}
53+
54+
location / {
55+
try_files $uri @php;
56+
}
57+
58+
location ~* ^(.*)\.php$ {
59+
return 301 $1;
60+
}
61+
}

0 commit comments

Comments
 (0)