This repository has been archived on 2025-04-11. You can view files and clone it, but cannot push or open issues or pull requests.
powerpanel-webview/nginx/public/gitlab.conf
2020-06-05 21:47:16 -05:00

39 lines
789 B
Text

##
# Gitlab service
##
server {
listen 80;
server_name gitlab.werefox.dev;
location / {
rewrite ^(.*)$ https://$host$1 permanent;
proxy_pass http://gitlab.werefox.dev:2443;
}
}
server {
listen 443 ssl;
ssl_certificate /etc/letsencrypt/live/werefox.dev/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/werefox.dev/privkey.pem;
server_name gitlab.werefox.dev;
location / {
proxy_pass http://gitlab.werefox.dev:2443;
proxy_set_header Host $http_host;
}
}
# werefoxsoftware.com Redirects
server {
listen 80;
server_name gitlab.werefoxsoftware.com;
return 301 $scheme://gitlab.werefox.dev$request_uri;
}
server {
listen 443;
server_name gitlab.werefoxsoftware.com;
return 301 $scheme://gitlab.werefox.dev$request_uri;
}