-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use standard nginx.conf from lsio alpine nginx base image
- Loading branch information
Showing
9 changed files
with
103 additions
and
110 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
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
This file was deleted.
Oops, something went wrong.
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,47 @@ | ||
## Version 2022/08/20 - Changelog: https://github.com/linuxserver/docker-xbackbone/commits/main/root/defaults/nginx/site-confs/default.conf.sample | ||
|
||
server { | ||
listen 80 default_server; | ||
listen [::]:80 default_server; | ||
|
||
listen 443 ssl http2; | ||
listen [::]:443 ssl http2; | ||
|
||
server_name _; | ||
|
||
root /config/www/xbackbone; | ||
index index.html index.htm index.php; | ||
|
||
charset utf-8; | ||
error_page 404 /index.php; | ||
client_max_body_size 2G; | ||
|
||
location / { | ||
# enable for basic auth | ||
#auth_basic "Restricted"; | ||
#auth_basic_user_file /config/nginx/.htpasswd; | ||
|
||
try_files $uri $uri/ /index.html /index.php?$args =404; | ||
} | ||
|
||
location ~ ^(.+\.php)(.*)$ { | ||
fastcgi_split_path_info ^(.+\.php)(.*)$; | ||
fastcgi_pass 127.0.0.1:9000; | ||
fastcgi_index index.php; | ||
include /etc/nginx/fastcgi_params; | ||
} | ||
|
||
# deny access to .htaccess/.htpasswd files | ||
location ~ /\.ht { | ||
deny all; | ||
} | ||
|
||
autoindex off; | ||
location ~ ^\.md { | ||
return 404; | ||
} | ||
|
||
location ~ ^/(app|bin|bootstrap|resources|storage|vendor|logs) { | ||
return 403; | ||
} | ||
} |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/bin/bash | ||
#!/usr/bin/with-contenv bash | ||
|
||
# create folders | ||
mkdir -p /config/www/xbackbone | ||
|