Skip to content

Commit 46fac62

Browse files
authored
Merge branch 'master' into cadvisor-endpoints
2 parents 62c721d + 7a4d827 commit 46fac62

5 files changed

Lines changed: 156 additions & 2 deletions

it-tools.subdomain.conf.sample

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
## Version 2023/05/08
2+
# make sure that your it-tools container is named it-tools
3+
# make sure that your dns has a cname set for it-tools
4+
5+
server {
6+
listen 443 ssl;
7+
listen [::]:443 ssl;
8+
9+
server_name it-tools.*;
10+
11+
include /config/nginx/ssl.conf;
12+
13+
client_max_body_size 0;
14+
15+
# enable for ldap auth (requires ldap-location.conf in the location block)
16+
#include /config/nginx/ldap-server.conf;
17+
18+
# enable for Authelia (requires authelia-location.conf in the location block)
19+
#include /config/nginx/authelia-server.conf;
20+
21+
# enable for Authentik (requires authentik-location.conf in the location block)
22+
#include /config/nginx/authentik-server.conf;
23+
24+
location / {
25+
# enable the next two lines for http auth
26+
#auth_basic "Restricted";
27+
#auth_basic_user_file /config/nginx/.htpasswd;
28+
29+
# enable for ldap auth (requires ldap-server.conf in the server block)
30+
#include /config/nginx/ldap-location.conf;
31+
32+
# enable for Authelia (requires authelia-server.conf in the server block)
33+
#include /config/nginx/authelia-location.conf;
34+
35+
# enable for Authentik (requires authentik-server.conf in the server block)
36+
#include /config/nginx/authentik-location.conf;
37+
38+
include /config/nginx/proxy.conf;
39+
include /config/nginx/resolver.conf;
40+
set $upstream_app it-tools;
41+
set $upstream_port 80;
42+
set $upstream_proto http;
43+
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
44+
}
45+
}

nextcloud.subdomain.conf.sample

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## Version 2023/02/05
1+
## Version 2023/05/10
22
# make sure that your nextcloud container is named nextcloud
33
# make sure that your dns has a cname set for nextcloud
44
# assuming this container is called "swag", edit your nextcloud container's config
@@ -32,6 +32,7 @@ server {
3232
set $upstream_proto https;
3333
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
3434

35+
# Uncomment X-Frame-Options directive in ssl.conf to pass security checks.
3536
proxy_hide_header X-Frame-Options;
3637
proxy_max_temp_file_size 2048m;
3738
}

nextcloud.subfolder.conf.sample

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## Version 2023/02/05
1+
## Version 2023/05/10
22
# make sure that your nextcloud container is named nextcloud
33
# make sure that nextcloud is set to work with the base url /nextcloud/
44
# Assuming this container is called "swag", edit your nextcloud container's config
@@ -34,6 +34,7 @@ location ^~ /nextcloud/ {
3434
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
3535

3636
rewrite /nextcloud(.*) $1 break;
37+
# Uncomment X-Frame-Options directive in ssl.conf to pass security checks.
3738
proxy_hide_header X-Frame-Options;
3839
proxy_max_temp_file_size 2048m;
3940
proxy_set_header Range $http_range;

pterodactyl.subdomain.conf.sample

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
## Version 2023/05/08
2+
# this is for your actual panel, not nodes
3+
# make sure you set your pterodactyl servers "remote" and "api" addresses to the domains you specify here
4+
# ensure you have enabled "ssl encryption" and (if necessary) "behind proxy" in your pterodactyl server
5+
# make sure that your pterodactyl container is named pterodactyl
6+
# make sure that your dns has a cname set for pterodactyl
7+
8+
server {
9+
listen 443 ssl;
10+
listen [::]:443 ssl;
11+
12+
server_name pterodactyl.*;
13+
14+
include /config/nginx/ssl.conf;
15+
16+
client_max_body_size 0;
17+
18+
# enable for ldap auth (requires ldap-location.conf in the location block)
19+
#include /config/nginx/ldap-server.conf;
20+
21+
# enable for Authelia (requires authelia-location.conf in the location block)
22+
#include /config/nginx/authelia-server.conf;
23+
24+
# enable for Authentik (requires authentik-location.conf in the location block)
25+
#include /config/nginx/authentik-server.conf;
26+
27+
location / {
28+
# enable the next two lines for http auth
29+
#auth_basic "Restricted";
30+
#auth_basic_user_file /config/nginx/.htpasswd;
31+
32+
# enable for ldap auth (requires ldap-server.conf in the server block)
33+
#include /config/nginx/ldap-location.conf;
34+
35+
# enable for Authelia (requires authelia-server.conf in the server block)
36+
#include /config/nginx/authelia-location.conf;
37+
38+
# enable for Authentik (requires authentik-server.conf in the server block)
39+
#include /config/nginx/authentik-location.conf;
40+
include /config/nginx/proxy.conf;
41+
include /config/nginx/resolver.conf;
42+
set $upstream_app pterodactyl;
43+
set $upstream_port 80;
44+
set $upstream_proto http;
45+
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
46+
47+
}
48+
}
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
## Version 2023/05/08
2+
# this is for nodes, not your actual panel
3+
# make sure you set your node to use 443 as its API port
4+
# make sure that your pterodactylnode container is named pterodactylnode
5+
# make sure that your dns has a cname set for pterodactylnode
6+
7+
server {
8+
listen 443 ssl;
9+
listen [::]:443 ssl;
10+
11+
server_name pterodactylnode.*;
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+
27+
location / {
28+
# enable the next two lines for http auth
29+
#auth_basic "Restricted";
30+
#auth_basic_user_file /config/nginx/.htpasswd;
31+
32+
# enable for ldap auth (requires ldap-server.conf in the server block)
33+
#include /config/nginx/ldap-location.conf;
34+
35+
# enable for Authelia (requires authelia-server.conf in the server block)
36+
#include /config/nginx/authelia-location.conf;
37+
38+
# enable for Authentik (requires authentik-server.conf in the server block)
39+
#include /config/nginx/authentik-location.conf;
40+
41+
include /config/nginx/proxy.conf;
42+
include /config/nginx/resolver.conf;
43+
set $upstream_app pterodactylnode;
44+
set $upstream_port 443;
45+
set $upstream_proto http;
46+
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
47+
48+
}
49+
50+
location ~ (/pterodactylnode)?/api {
51+
include /config/nginx/proxy.conf;
52+
include /config/nginx/resolver.conf;
53+
set $upstream_app pterodactylnode;
54+
set $upstream_port 443;
55+
set $upstream_proto http;
56+
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
57+
58+
}
59+
}

0 commit comments

Comments
 (0)