This repository was archived by the owner on Nov 6, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 10 files changed +52
-8
lines changed Expand file tree Collapse file tree 10 files changed +52
-8
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ server {
3232 server_name localhost;
3333 access_log /data/logs/fallback_access.log standard;
3434 error_log /dev/null crit;
35+ include conf.d/include/ssl-ciphers.conf;
3536 ssl_reject_handshake on;
3637
3738 return 444;
Original file line number Diff line number Diff line change 1+ server {
2+ listen 81 default;
3+ listen [::]:81 default;
4+
5+ server_name nginxproxymanager-dev;
6+ root /app/frontend/dist;
7+ access_log /dev/null;
8+
9+ location /api {
10+ return 302 /api/;
11+ }
12+
13+ location /api/ {
14+ add_header X-Served-By $host;
15+ proxy_set_header Host $host;
16+ proxy_set_header X-Forwarded-Scheme $scheme;
17+ proxy_set_header X-Forwarded-Proto $scheme;
18+ proxy_set_header X-Forwarded-For $remote_addr;
19+ proxy_pass http://127.0.0.1:3000/;
20+
21+ proxy_read_timeout 15m;
22+ proxy_send_timeout 15m;
23+ }
24+
25+ location / {
26+ index index.html;
27+ try_files $uri $uri.html $uri/ /index.html;
28+ }
29+ }
Original file line number Diff line number Diff line change 1+ resolvers.conf
Original file line number Diff line number Diff line change 1- location ~* ^.*\.(css|js|jpe?g|gif|png|webp|woff|eot|ttf|svg|ico|css\.map|js\.map)$ {
1+ location ~* ^.*\.(css|js|jpe?g|gif|png|webp|woff|woff2| eot|ttf|svg|ico|css\.map|js\.map)$ {
22 if_modified_since off;
33
44 # use the public cache
Original file line number Diff line number Diff line change 1+ set $test "";
12if ($scheme = "http") {
3+ set $test "H";
4+ }
5+ if ($request_uri = /.well-known/acme-challenge/test-challenge) {
6+ set $test "${test}T";
7+ }
8+ if ($test = H) {
29 return 301 https://$host$request_uri;
310}
Original file line number Diff line number Diff line change 1+ log_format proxy '[$time_local] $upstream_cache_status $upstream_status $status - $request_method $scheme $host "$request_uri" [Client $remote_addr] [Length $body_bytes_sent] [Gzip $gzip_ratio] [Sent-to $server] "$http_user_agent" "$http_referer"';
2+ log_format standard '[$time_local] $status - $request_method $scheme $host "$request_uri" [Client $remote_addr] [Length $body_bytes_sent] [Gzip $gzip_ratio] "$http_user_agent" "$http_referer"';
3+
4+ access_log /data/logs/fallback_access.log proxy;
Original file line number Diff line number Diff line change 1+ ssl_session_timeout 5m;
2+ ssl_session_cache shared:SSL_stream:50m;
Original file line number Diff line number Diff line change 1+ ssl_session_timeout 5m;
2+ ssl_session_cache shared:SSL:50m;
Original file line number Diff line number Diff line change 1- ssl_session_timeout 5m;
2- ssl_session_cache shared:SSL:50m;
3-
41# intermediate configuration. tweak to your needs.
52ssl_protocols TLSv1.2 TLSv1.3;
63ssl_ciphers 'ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384';
Original file line number Diff line number Diff line change @@ -17,6 +17,9 @@ error_log /data/logs/fallback_error.log warn;
1717# Includes files with directives to load dynamic modules.
1818include /etc/nginx/modules/*.conf;
1919
20+ # Custom
21+ include /data/nginx/custom/root_top[.]conf;
22+
2023events {
2124 include /data/nginx/custom/events [.]conf;
2225}
@@ -46,10 +49,8 @@ http {
4649 proxy_cache_path /var/lib/nginx/cache/public levels=1:2 keys_zone=public-cache:30m max_size=192m ;
4750 proxy_cache_path /var/lib/nginx/cache/private levels=1:2 keys_zone=private-cache:5m max_size=1024m ;
4851
49- log_format proxy '[$time_local] $upstream_cache_status $upstream_status $status - $request_method $scheme $host "$request_uri" [Client $remote_addr] [Length $body_bytes_sent] [Gzip $gzip_ratio] [Sent-to $server] "$http_user_agent" "$http_referer"' ;
50- log_format standard '[$time_local] $status - $request_method $scheme $host "$request_uri" [Client $remote_addr] [Length $body_bytes_sent] [Gzip $gzip_ratio] "$http_user_agent" "$http_referer"' ;
51-
52- access_log /data/logs/fallback_access.log proxy;
52+ # Log format and fallback log file
53+ include /etc/nginx/conf.d/include /log.conf;
5354
5455 # Dynamically generated resolvers file
5556 include /etc/nginx/conf.d/include /resolvers.conf;
You can’t perform that action at this time.
0 commit comments