You've already forked nginxsnippets
initial commit
This commit is contained in:
52
hostfiles/gitea.80.conf
Normal file
52
hostfiles/gitea.80.conf
Normal file
@@ -0,0 +1,52 @@
|
||||
##### Process http start #######################################################
|
||||
server {
|
||||
listen 80;
|
||||
server_name DOMAIN;
|
||||
server_tokens off;
|
||||
|
||||
##### Optional include custom Error pages start ############################
|
||||
include /etc/nginx/nginxsnippets/custom-errors.conf;
|
||||
##### Optional include custom Error pages stop #############################
|
||||
|
||||
##### Optional disable gzip start ##########################################
|
||||
# gzip off;
|
||||
##### Optional disable gzip stop ###########################################
|
||||
|
||||
##### Optional disable access log start ####################################
|
||||
# access_log off;
|
||||
##### Optional disable access log stop #####################################
|
||||
|
||||
##### Block Bad referers and bad bots start ################################
|
||||
if ($bad_referer) { return 444; }
|
||||
if ($bad_user_agent) { return 444; }
|
||||
##### Block Bad referers and bad bots stop #################################
|
||||
|
||||
##### Optional stuff start #################################################
|
||||
# include /etc/nginx/nginxsnippets/block-engines.conf;
|
||||
# include /etc/nginx/nginxsnippets/log-exclude.conf;
|
||||
location = /.env { access_log off; log_not_found off; }
|
||||
location = /favicon.ico { access_log off; log_not_found off; }
|
||||
include /etc/nginx/nginxsnippets/block-htaccess.conf;
|
||||
include /etc/nginx/nginxsnippets/block-file-access.conf;
|
||||
##### Optional stuff stop ##################################################
|
||||
|
||||
##### Enable fastcgi cache start ###########################################
|
||||
set $skip_cache 0;
|
||||
##### Enable fastcgi cache stop ############################################
|
||||
|
||||
##### Process content start ################################################
|
||||
location / {
|
||||
# include /etc/nginx/nginxsnippets/proxyheader.conf;
|
||||
# proxy_set_header Host $host; # May fix som proxy issues
|
||||
# proxy_ssl_verify off; # Disable cert check with internal proxy
|
||||
proxy_pass http://127.0.0.1:3000;
|
||||
}
|
||||
##### Process content stop #################################################
|
||||
|
||||
##### Cache js css static content and open files start #####################
|
||||
include /etc/nginx/nginxsnippets/cache-open-files.conf;
|
||||
include /etc/nginx/nginxsnippets/cache-statics.conf;
|
||||
# Optional include /etc/nginx/nginxsnippets/cache-js-css.conf;
|
||||
##### Cache js css static content and open files stop ######################
|
||||
}
|
||||
##### Process http stop ########################################################
|
Reference in New Issue
Block a user