Skip to content

Commit 053e245

Browse files
authored
Merge pull request #537 from ZlabiDev/master
2 parents dc840ba + 2e9c8b5 commit 053e245

1 file changed

Lines changed: 67 additions & 0 deletions

File tree

nexusoss.subdomain.conf.sample

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
## Version 2023/03/05
2+
# make sure that your nexusoss container is named nexusoss
3+
# make sure that your dns has a cname set for nexusoss
4+
# make sure that the port for the nexusoss container 8081 (the first location "/")
5+
# make sure that the HTTP Connector port for the hosted docker repository is 8082 (the second location "/v2/")
6+
7+
server {
8+
listen 443 ssl;
9+
listen [::]:443 ssl;
10+
11+
server_name nexusoss.*;
12+
13+
include /config/nginx/ssl.conf;
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 nexusoss;
41+
set $upstream_port 8081;
42+
set $upstream_proto http;
43+
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
44+
}
45+
46+
location /v2/ {
47+
# enable the next two lines for http auth
48+
#auth_basic "Restricted";
49+
#auth_basic_user_file /config/nginx/.htpasswd;
50+
51+
# enable for ldap auth (requires ldap-server.conf in the server block)
52+
#include /config/nginx/ldap-location.conf;
53+
54+
# enable for Authelia (requires authelia-server.conf in the server block)
55+
#include /config/nginx/authelia-location.conf;
56+
57+
# enable for Authentik (requires authentik-server.conf in the server block)
58+
#include /config/nginx/authentik-location.conf;
59+
60+
include /config/nginx/proxy.conf;
61+
include /config/nginx/resolver.conf;
62+
set $upstream_app nexusoss;
63+
set $upstream_port 8082;
64+
set $upstream_proto http;
65+
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
66+
}
67+
}

0 commit comments

Comments
 (0)