Maktub_Wiki Maktub_Wiki
主站 (opens new window)
  • 服务搭建
  • 网络服务
  • 开源框架
  • 操作系统
  • iOS/MacOS
  • 算法导论(Python)
  • Leetcode
  • 线性代数
  • 经济周期笔记
主站 (opens new window)
  • 服务搭建
  • 网络服务
  • 开源框架
  • 操作系统
  • iOS/MacOS
  • 算法导论(Python)
  • Leetcode
  • 线性代数
  • 经济周期笔记
  • Node.js

    • 脚本
  • Git

    • Github Actions
  • Caddy

    • 基础配置
    • abort应用
    • Caddy加速Docker
    • Caddy加速OpenAi api
  • V2ray

    • 入口分流
  • Realm

    • 多端口转发
  • Docker

    • 配置
    • 配置容器支持systemctl
  • NextCloud
    • Hexo
    • vuepress-theme-vdoing
    • 开源框架
    Maktub_小明
    2023-12-17
    目录

    NextCloud

    # 配置HTTP访问

    编辑/usr/local/etc/nginx/conf.d/nextcloud.conf

    upstream php-handler {
        server unix:/var/run/nextcloud-php-fpm.sock;
    }
    
    # Redirect to HTTPS
    #server {
    #    listen 80 default_server;
    #    listen [::]:80;
    #
    #    location ^~ /.well-known/acme-challenge {
    #        # Path to the root of your installation
    #        root /usr/local/www/nextcloud/;
    #        try_files $uri $uri/ =404;
    #    }
    #
    #    location / {
    #      return 301 https://$host:443$request_uri;
    #    }
    #}
    
    server {
    #    listen 443 ssl http2;
        listen 80 default_server;
        server_name _;
    
        # HSTS settings
        # WARNING: Only add the preload option once you read about
        # the consequences in https://hstspreload.org/. This option
        # will add the domain to a hardcoded list that is shipped
        # in all major browsers and getting removed from this list
        # could take several months.
    #    add_header Strict-Transport-Security "max-age=15768000; includeSubDomains;" always;
    
        include conf.d/nextcloud.inc;
    }
    
    上次更新: 2025/09/14, 08:53:50
    配置容器支持systemctl
    Hexo

    ← 配置容器支持systemctl Hexo→

    Theme by Vdoing | Copyright © 2021-2025 Maktub_小明 | MIT License
    • 跟随系统
    • 浅色模式
    • 深色模式
    • 阅读模式