Skip to content

Commit db96605

Browse files
authored
Update asciinema.subdomain.conf.sample
Added block for the /dashboard Currently it's an unfinished dash, but author says it's in the works: https://discourse.asciinema.org/t/2-questions-1-post/920/2?u=j_scott_elblein
1 parent 20c78bb commit db96605

File tree

1 file changed

+23
-1
lines changed

1 file changed

+23
-1
lines changed

asciinema.subdomain.conf.sample

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## Version 2025/01/17
1+
## Version 2025/02/21
22
# make sure that your asciinema container is named asciinema
33
# make sure that your dns has a cname set for asciinema
44

@@ -42,4 +42,26 @@ server {
4242
set $upstream_proto http;
4343
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
4444
}
45+
46+
location ~ (/asciinema)?/dashboard {
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 asciinema;
63+
set $upstream_port 4002;
64+
set $upstream_proto http;
65+
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
66+
}
4567
}

0 commit comments

Comments
 (0)