@ -544,36 +544,40 @@ in {
'' ;
} ;
" / " = {
priority = 2 00;
extraConfig = " r e w r i t e ^ / i n d e x . p h p ; " ;
priority = 9 00;
extraConfig = " t r y _ f i l e s $ u r i $ u r i / / i n d e x . p h p $ r e q u e s t _ u r i ; " ;
} ;
" ~ ^ / s t o r e - a p p s " = {
priority = 201 ;
extraConfig = " r o o t ${ cfg . home } ; " ;
} ;
" = / . w e l l - k n o w n / c a r d d a v " = {
" ^ ~ / . w e l l - k n o w n " = {
priority = 210 ;
extraConfig = " r e t u r n 3 0 1 $ s c h e m e : / / $ h o s t / r e m o t e . p h p / d a v ; " ;
} ;
" = / . w e l l - k n o w n / c a l d a v " = {
priority = 210 ;
extraConfig = " r e t u r n 3 0 1 $ s c h e m e : / / $ h o s t / r e m o t e . p h p / d a v ; " ;
} ;
" ~ ^ \\ / ( ? : b u i l d | t e s t s | c o n f i g | l i b | 3 r d p a r t y | t e m p l a t e s | d a t a ) \\ / " = {
priority = 300 ;
extraConfig = " d e n y a l l ; " ;
} ;
" ~ ^ \\ / ( ? : \\ . | a u t o t e s t | o c c | i s s u e | i n d i e | d b _ | c o n s o l e ) " = {
priority = 300 ;
extraConfig = " d e n y a l l ; " ;
extraConfig = ''
location = /.well-known/carddav {
return 301 $ scheme://$host/remote.php/dav ;
}
location = /.well-known/caldav {
return 301 $ scheme://$host/remote.php/dav ;
}
try_files $ uri $ uri / = 404 ;
'' ;
} ;
" ~ ^ \\ / ( ? : i n d e x | r e m o t e | p u b l i c | c r o n | c o r e / a j a x \\ / u p d a t e | s t a t u s | o c s \\ / v [ 1 2 ] | u p d a t e r \\ / . + | o c s - p r o v i d e r \\ / . + | o c m - p r o v i d e r \\ / . + ) \\ . p h p ( ? : $ | \\ / ) " = {
" ~ ^ / ( ? : b u i l d | t e s t s | c o n f i g | l i b | 3 r d p a r t y | t e m p l a t e s | d a t a ) ( ? : $ | / ) " . extraConfig = ''
return 404 ;
'' ;
" ~ ^ / ( ? : \\ . | a u t o t e s t | o c c | i s s u e | i n d i e | d b _ | c o n s o l e ) " . extraConfig = ''
return 404 ;
'' ;
" ~ \\ . p h p ( ? : $ | / ) " = {
priority = 500 ;
extraConfig = ''
include $ { config . services . nginx . package } /conf/fastcgi.conf ;
fastcgi_split_path_info ^ ( . + \ . php ) ( \ \ /. * ) $ ;
fastcgi_split_path_info ^ ( . + ? \ . php ) ( \ \ /. * ) $ ;
set $ path_info $ fastcgi_path_info ;
try_files $ fastcgi_script_name = 404 ;
fastcgi_param PATH_INFO $ fastcgi_path_info ;
fastcgi_param PATH_INFO $ path_info ;
fastcgi_param SCRIPT_FILENAME $ document_root $ fastcgi_script_name ;
fastcgi_param HTTPS $ { if cfg . https then " o n " else " o f f " } ;
fastcgi_param modHeadersAvailable true ;
fastcgi_param front_controller_active true ;
@ -583,28 +587,24 @@ in {
fastcgi_read_timeout 1 2 0 s ;
'' ;
} ;
" ~ ^ \\ / ( ? : u p d a t e r | o c s - p r o v i d e r | o c m - p r o v i d e r ) ( ? : $ | \\ / ) " . extraConfig = ''
try_files $ uri / = 404 ;
index index . php ;
'' ;
" ~ \\ . ( ? : c s s | j s | w o f f 2 ? | s v g | g i f ) $ " . extraConfig = ''
" ~ \\ . ( ? : c s s | j s | s v g | g i f | m a p ) $ " . extraConfig = ''
try_files $ uri /index.php $ request_uri ;
add_header Cache-Control " p u b l i c , m a x - a g e = 1 5 7 7 8 4 6 3 " ;
add_header X-Content-Type-Options nosniff ;
add_header X-XSS-Protection " 1 ; m o d e = b l o c k " ;
add_header X-Robots-Tag none ;
add_header X-Download-Options noopen ;
add_header X-Permitted-Cross-Domain-Policies none ;
add_header X-Frame-Options sameorigin ;
add_header Referrer-Policy no-referrer ;
expires 6 M ;
access_log off ;
'' ;
" ~ \\ . ( ? : p n g | h t m l | t t f | i c o | j p g | j p e g | b c m a p | m p 4 | w e b m ) $ " . extraConfig = ''
" ~ \\ . w o f f 2 ? $ " . extraConfig = ''
try_files $ uri /index.php $ request_uri ;
expires 7 d ;
access_log off ;
'' ;
" ~ ^ \\ / ( ? : u p d a t e r | o c s - p r o v i d e r | o c m - p r o v i d e r ) ( ? : $ | \\ / ) " . extraConfig = ''
try_files $ uri / = 404 ;
index index . php ;
'' ;
} ;
extraConfig = ''
index index . php index . html /index.php $ request_uri ;
expires 1 m ;
add_header X-Content-Type-Options nosniff ;
add_header X-XSS-Protection " 1 ; m o d e = b l o c k " ;
add_header X-Robots-Tag none ;
@ -613,8 +613,6 @@ in {
add_header X-Frame-Options sameorigin ;
add_header Referrer-Policy no-referrer ;
add_header Strict-Transport-Security " m a x - a g e = 1 5 5 5 2 0 0 0 ; i n c l u d e S u b D o m a i n s " always ;
error_page 403 /core/templates/403.php ;
error_page 404 /core/templates/404.php ;
client_max_body_size $ { cfg . maxUploadSize } ;
fastcgi_buffers 64 4 K ;
fastcgi_hide_header X-Powered-By ;