-
-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updating arch to new format and adding dri3 support
- Loading branch information
Showing
12 changed files
with
134 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#!/usr/bin/with-contenv bash | ||
|
||
# nginx Path | ||
NGINX_CONFIG=/etc/nginx/conf.d/default.conf | ||
|
||
# user passed env vars | ||
CPORT="${CUSTOM_PORT:-3000}" | ||
CHPORT="${CUSTOM_HTTPS_PORT:-3001}" | ||
CUSER="${CUSTOM_USER:-abc}" | ||
|
||
# create self signed cert | ||
if [ ! -f "/config/ssl/cert.pem" ]; then | ||
mkdir -p /config/ssl | ||
openssl req -new -x509 \ | ||
-days 3650 -nodes \ | ||
-out /config/ssl/cert.pem \ | ||
-keyout /config/ssl/cert.key \ | ||
-subj "/C=US/ST=CA/L=Carlsbad/O=Linuxserver.io/OU=LSIO Server/CN=*" | ||
chmod 600 /config/ssl/cert.key | ||
chown -R abc:abc /config/ssl | ||
fi | ||
|
||
# modify nginx config | ||
cp /defaults/default.conf ${NGINX_CONFIG} | ||
sed -i "s/3000/$CPORT/g" ${NGINX_CONFIG} | ||
sed -i "s/3001/$CHPORT/g" ${NGINX_CONFIG} | ||
if [ ! -z ${PASSWORD+x} ]; then | ||
printf "${CUSER}:$(openssl passwd -apr1 ${PASSWORD})\n" > /etc/nginx/.htpasswd | ||
sed -i 's/#//g' ${NGINX_CONFIG} | ||
fi |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/etc/s6-overlay/s6-rc.d/init-nginx/run |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.